]> Pileus Git - ~andy/linux/blobdiff - arch/arm/kernel/sys_arm.c
Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux
[~andy/linux] / arch / arm / kernel / sys_arm.c
index c2a898aa57aada4b16cff08ea6da84d797f88ab9..3151f5623d0e88ded30150fb47b8696366108111 100644 (file)
 #include <linux/uaccess.h>
 #include <linux/slab.h>
 
-/* Fork a new task - this creates a new program thread.
- * This is called indirectly via a small wrapper
- */
-asmlinkage int sys_fork(struct pt_regs *regs)
-{
-#ifdef CONFIG_MMU
-       return do_fork(SIGCHLD, regs->ARM_sp, regs, 0, NULL, NULL);
-#else
-       /* can not support in nommu mode */
-       return(-EINVAL);
-#endif
-}
-
-/* Clone a task - this clones the calling program thread.
- * This is called indirectly via a small wrapper
- */
-asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
-                        int __user *parent_tidptr, int tls_val,
-                        int __user *child_tidptr, struct pt_regs *regs)
-{
-       if (!newsp)
-               newsp = regs->ARM_sp;
-
-       return do_fork(clone_flags, newsp, regs, 0, parent_tidptr, child_tidptr);
-}
-
-asmlinkage int sys_vfork(struct pt_regs *regs)
-{
-       return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->ARM_sp, regs, 0, NULL, NULL);
-}
-
 /*
  * Since loff_t is a 64 bit type we avoid a lot of ABI hassle
  * with a different argument ordering.