diff options
Diffstat (limited to 'arch/arm/kernel/sys_arm.c')
-rw-r--r-- | arch/arm/kernel/sys_arm.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/arm/kernel/sys_arm.c b/arch/arm/kernel/sys_arm.c index c2a898aa57aa..3151f5623d0e 100644 --- a/arch/arm/kernel/sys_arm.c +++ b/arch/arm/kernel/sys_arm.c | |||
@@ -28,37 +28,6 @@ | |||
28 | #include <linux/uaccess.h> | 28 | #include <linux/uaccess.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | 30 | ||
31 | /* Fork a new task - this creates a new program thread. | ||
32 | * This is called indirectly via a small wrapper | ||
33 | */ | ||
34 | asmlinkage int sys_fork(struct pt_regs *regs) | ||
35 | { | ||
36 | #ifdef CONFIG_MMU | ||
37 | return do_fork(SIGCHLD, regs->ARM_sp, regs, 0, NULL, NULL); | ||
38 | #else | ||
39 | /* can not support in nommu mode */ | ||
40 | return(-EINVAL); | ||
41 | #endif | ||
42 | } | ||
43 | |||
44 | /* Clone a task - this clones the calling program thread. | ||
45 | * This is called indirectly via a small wrapper | ||
46 | */ | ||
47 | asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, | ||
48 | int __user *parent_tidptr, int tls_val, | ||
49 | int __user *child_tidptr, struct pt_regs *regs) | ||
50 | { | ||
51 | if (!newsp) | ||
52 | newsp = regs->ARM_sp; | ||
53 | |||
54 | return do_fork(clone_flags, newsp, regs, 0, parent_tidptr, child_tidptr); | ||
55 | } | ||
56 | |||
57 | asmlinkage int sys_vfork(struct pt_regs *regs) | ||
58 | { | ||
59 | return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->ARM_sp, regs, 0, NULL, NULL); | ||
60 | } | ||
61 | |||
62 | /* | 31 | /* |
63 | * Since loff_t is a 64 bit type we avoid a lot of ABI hassle | 32 | * Since loff_t is a 64 bit type we avoid a lot of ABI hassle |
64 | * with a different argument ordering. | 33 | * with a different argument ordering. |