|
3 | 3 | * Licensed under the GPL |
4 | 4 | */ |
5 | 5 |
|
6 | | -#include "linux/sched.h" |
7 | | -#include "linux/shm.h" |
8 | | -#include "linux/ipc.h" |
9 | | -#include "linux/syscalls.h" |
10 | | -#include "asm/mman.h" |
11 | | -#include "asm/uaccess.h" |
12 | | -#include "asm/unistd.h" |
| 6 | +#include <linux/syscalls.h> |
| 7 | +#include <sysdep/syscalls.h> |
13 | 8 |
|
14 | 9 | /* |
15 | 10 | * The prototype on i386 is: |
16 | 11 | * |
17 | | - * int clone(int flags, void * child_stack, int * parent_tidptr, struct user_desc * newtls, int * child_tidptr) |
| 12 | + * int clone(int flags, void * child_stack, int * parent_tidptr, struct user_desc * newtls |
18 | 13 | * |
19 | 14 | * and the "newtls" arg. on i386 is read by copy_thread directly from the |
20 | 15 | * register saved on the stack. |
21 | 16 | */ |
22 | | -long sys_clone(unsigned long clone_flags, unsigned long newsp, |
23 | | - int __user *parent_tid, void *newtls, int __user *child_tid) |
| 17 | +long i386_clone(unsigned long clone_flags, unsigned long newsp, |
| 18 | + int __user *parent_tid, void *newtls, int __user *child_tid) |
24 | 19 | { |
25 | | - long ret; |
26 | | - |
27 | | - if (!newsp) |
28 | | - newsp = UPT_SP(¤t->thread.regs.regs); |
29 | | - |
30 | | - current->thread.forking = 1; |
31 | | - ret = do_fork(clone_flags, newsp, ¤t->thread.regs, 0, parent_tid, |
32 | | - child_tid); |
33 | | - current->thread.forking = 0; |
34 | | - return ret; |
| 20 | + return sys_clone(clone_flags, newsp, parent_tid, child_tid); |
35 | 21 | } |
36 | 22 |
|
| 23 | + |
37 | 24 | long sys_sigaction(int sig, const struct old_sigaction __user *act, |
38 | 25 | struct old_sigaction __user *oact) |
39 | 26 | { |
|
0 commit comments