OSDN Git Service

rx: use common clone.
authorYoshinori Sato <ysato@users.sourceforge.jp>
Fri, 1 Jan 2016 11:22:45 +0000 (20:22 +0900)
committerYoshinori Sato <yo-satoh@sios.com>
Fri, 28 Jan 2022 13:00:16 +0000 (22:00 +0900)
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
arch/rx/include/uapi/asm/unistd.h
arch/rx/kernel/process.c

index 7a2eb69..49108ac 100644 (file)
@@ -1,3 +1,4 @@
 #define __ARCH_NOMMU
+#define __ARCH_WANT_SYS_CLONE
 
 #include <asm-generic/unistd.h>
index 393772c..905702e 100644 (file)
@@ -117,20 +117,6 @@ int copy_thread(unsigned long clone_flags,
        return 0;
 }
 
-asmlinkage int sys_clone(struct pt_regs *regs)
-{
-       unsigned long clone_flags = regs->r[1];
-       unsigned long newsp = regs->r[2];
-       unsigned long parent_tidptr = regs->r[3];
-       unsigned long child_tidptr = regs->r[4];
-
-       if (!newsp)
-               newsp = regs->usp;
-       return do_fork(clone_flags, newsp, 0,
-                       (int __user *)parent_tidptr,
-                       (int __user *)child_tidptr);
-}
-
 unsigned long get_wchan(struct task_struct *p)
 {
        int count = 0;