diff options
author | Brian Gerst <brgerst@gmail.com> | 2009-12-09 19:01:56 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-12-09 19:29:42 -0500 |
commit | f839bbc5c81b1c92ff8e81c360e9564f7b961b2e (patch) | |
tree | 038fef1b902db9ec43b1ab6b82861ebf2d56eef5 /arch/x86/kernel/process.c | |
parent | f1382f157fb1175bba008abad0907310a1e459ce (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.c')
-rw-r--r-- | arch/x86/kernel/process.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index bb17bd9334fb..f3c1a6b3a65e 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c | |||
@@ -234,6 +234,15 @@ int sys_vfork(struct pt_regs *regs) | |||
234 | NULL, NULL); | 234 | NULL, NULL); |
235 | } | 235 | } |
236 | 236 | ||
237 | long | ||
238 | sys_clone(unsigned long clone_flags, unsigned long newsp, | ||
239 | void __user *parent_tid, void __user *child_tid, struct pt_regs *regs) | ||
240 | { | ||
241 | if (!newsp) | ||
242 | newsp = regs->sp; | ||
243 | return do_fork(clone_flags, newsp, regs, 0, parent_tid, child_tid); | ||
244 | } | ||
245 | |||
237 | 246 | ||
238 | /* | 247 | /* |
239 | * sys_execve() executes a new program. | 248 | * sys_execve() executes a new program. |