aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process_32.c
diff options
context:
space:
mode:
authorBrian Gerst <brgerst@gmail.com>2009-12-09 19:01:56 -0500
committerH. Peter Anvin <hpa@zytor.com>2009-12-09 19:29:42 -0500
commitf839bbc5c81b1c92ff8e81c360e9564f7b961b2e (patch)
tree038fef1b902db9ec43b1ab6b82861ebf2d56eef5 /arch/x86/kernel/process_32.c
parentf1382f157fb1175bba008abad0907310a1e459ce (diff)
x86: Merge sys_clone
Change 32-bit sys_clone to new PTREGSCALL stub, and merge with 64-bit. Signed-off-by: Brian Gerst <brgerst@gmail.com> LKML-Reference: <1260403316-5679-7-git-send-email-brgerst@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/process_32.c')
-rw-r--r--arch/x86/kernel/process_32.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
index 486e38e2900b..506d5a7ba17c 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
@@ -436,21 +436,6 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
436 return prev_p; 436 return prev_p;
437} 437}
438 438
439int sys_clone(struct pt_regs *regs)
440{
441 unsigned long clone_flags;
442 unsigned long newsp;
443 int __user *parent_tidptr, *child_tidptr;
444
445 clone_flags = regs->bx;
446 newsp = regs->cx;
447 parent_tidptr = (int __user *)regs->dx;
448 child_tidptr = (int __user *)regs->di;
449 if (!newsp)
450 newsp = regs->sp;
451 return do_fork(clone_flags, newsp, regs, 0, parent_tidptr, child_tidptr);
452}
453
454#define top_esp (THREAD_SIZE - sizeof(unsigned long)) 439#define top_esp (THREAD_SIZE - sizeof(unsigned long))
455#define top_ebp (THREAD_SIZE - 2*sizeof(unsigned long)) 440#define top_ebp (THREAD_SIZE - 2*sizeof(unsigned long))
456 441