aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/blackfin/include/asm/unistd.h1
-rw-r--r--arch/blackfin/kernel/process.c20
2 files changed, 1 insertions, 20 deletions
diff --git a/arch/blackfin/include/asm/unistd.h b/arch/blackfin/include/asm/unistd.h
index 5b2a0748d7d3..b4ec1bb3d5d4 100644
--- a/arch/blackfin/include/asm/unistd.h
+++ b/arch/blackfin/include/asm/unistd.h
@@ -446,6 +446,7 @@
446#define __ARCH_WANT_SYS_NICE 446#define __ARCH_WANT_SYS_NICE
447#define __ARCH_WANT_SYS_RT_SIGACTION 447#define __ARCH_WANT_SYS_RT_SIGACTION
448#define __ARCH_WANT_SYS_RT_SIGSUSPEND 448#define __ARCH_WANT_SYS_RT_SIGSUSPEND
449#define __ARCH_WANT_SYS_EXECVE
449 450
450/* 451/*
451 * "Conditional" syscalls 452 * "Conditional" syscalls
diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c
index 9945b94c63d4..da8df0e504ac 100644
--- a/arch/blackfin/kernel/process.c
+++ b/arch/blackfin/kernel/process.c
@@ -184,26 +184,6 @@ copy_thread(unsigned long clone_flags,
184 return 0; 184 return 0;
185} 185}
186 186
187/*
188 * sys_execve() executes a new program.
189 */
190asmlinkage int sys_execve(const char __user *name,
191 const char __user *const __user *argv,
192 const char __user *const __user *envp)
193{
194 int error;
195 struct filename *filename;
196 struct pt_regs *regs = (struct pt_regs *)((&name) + 6);
197
198 filename = getname(name);
199 error = PTR_ERR(filename);
200 if (IS_ERR(filename))
201 return error;
202 error = do_execve(filename->name, argv, envp, regs);
203 putname(filename);
204 return error;
205}
206
207unsigned long get_wchan(struct task_struct *p) 187unsigned long get_wchan(struct task_struct *p)
208{ 188{
209 unsigned long fp, pc; 189 unsigned long fp, pc;