diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-13 07:26:10 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-15 03:07:08 (GMT) |
commit | 999121a10cbf091cdb3c168754de6ddf1992e656 (patch) | |
tree | 09d62be19f0f4ceb2b9d3d263b042c46e6d19905 /arch | |
parent | ee1e17c69eb3c843d283eb3fbed1616ed9a122eb (diff) | |
download | linux-fsl-qoriq-999121a10cbf091cdb3c168754de6ddf1992e656.tar.xz |
blackfin: switch to generic sys_execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/include/asm/unistd.h | 1 | ||||
-rw-r--r-- | arch/blackfin/kernel/process.c | 20 |
2 files changed, 1 insertions, 20 deletions
diff --git a/arch/blackfin/include/asm/unistd.h b/arch/blackfin/include/asm/unistd.h index 5b2a074..b4ec1bb 100644 --- a/arch/blackfin/include/asm/unistd.h +++ b/arch/blackfin/include/asm/unistd.h @@ -446,6 +446,7 @@ #define __ARCH_WANT_SYS_NICE #define __ARCH_WANT_SYS_RT_SIGACTION #define __ARCH_WANT_SYS_RT_SIGSUSPEND +#define __ARCH_WANT_SYS_EXECVE /* * "Conditional" syscalls diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index 9945b94..da8df0e 100644 --- a/arch/blackfin/kernel/process.c +++ b/arch/blackfin/kernel/process.c @@ -184,26 +184,6 @@ copy_thread(unsigned long clone_flags, return 0; } -/* - * sys_execve() executes a new program. - */ -asmlinkage int sys_execve(const char __user *name, - const char __user *const __user *argv, - const char __user *const __user *envp) -{ - int error; - struct filename *filename; - struct pt_regs *regs = (struct pt_regs *)((&name) + 6); - - filename = getname(name); - error = PTR_ERR(filename); - if (IS_ERR(filename)) - return error; - error = do_execve(filename->name, argv, envp, regs); - putname(filename); - return error; -} - unsigned long get_wchan(struct task_struct *p) { unsigned long fp, pc; |