Skip to content

Commit

Permalink
xtensa: switch to generic clone()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Nov 29, 2012
1 parent 39d91a9 commit 3e41f9b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions arch/xtensa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ config XTENSA
select GENERIC_KERNEL_THREAD
select GENERIC_KERNEL_EXECVE
select ARCH_WANT_OPTIONAL_GPIOLIB
select CLONE_BACKWARDS
help
Xtensa processors are 32-bit RISC machines designed by Tensilica
primarily for embedded systems. These processors are both
Expand Down
1 change: 0 additions & 1 deletion arch/xtensa/include/asm/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

struct pt_regs;
struct sigaction;
asmlinkage long xtensa_clone(unsigned long, unsigned long, struct pt_regs*);
asmlinkage long xtensa_ptrace(long, long, long, long);
asmlinkage long xtensa_sigreturn(struct pt_regs*);
asmlinkage long xtensa_rt_sigreturn(struct pt_regs*);
Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define _XTENSA_UNISTD_H

#define __ARCH_WANT_SYS_EXECVE
#define __ARCH_WANT_SYS_CLONE
#include <uapi/asm/unistd.h>

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ __SYSCALL(115, sys_sendmmsg, 4)
/* Process Operations */

#define __NR_clone 116
__SYSCALL(116, xtensa_clone, 5)
__SYSCALL(116, sys_clone, 5)
#define __NR_execve 117
__SYSCALL(117, sys_execve, 3)
#define __NR_exit 118
Expand Down
9 changes: 0 additions & 9 deletions arch/xtensa/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,3 @@ int dump_fpu(void)
{
return 0;
}

asmlinkage
long xtensa_clone(unsigned long clone_flags, unsigned long newsp,
void __user *parent_tid, void *child_tls,
void __user *child_tid, long a5,
struct pt_regs *regs)
{
return do_fork(clone_flags, newsp, regs, 0, parent_tid, child_tid);
}

0 comments on commit 3e41f9b

Please sign in to comment.