h8300: generic sys_execve()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Oct 2012 17:31:13 +0000 (13:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Oct 2012 23:37:44 +0000 (19:37 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/h8300/include/asm/unistd.h
arch/h8300/kernel/process.c

index 5cd882801d7980ae47455febe80b30a8cd4b27b0..07afcfaec9951317b30491383787ec3158965b15 100644 (file)
 #define __ARCH_WANT_SYS_SIGPROCMASK
 #define __ARCH_WANT_SYS_RT_SIGACTION
 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
+#define __ARCH_WANT_SYS_EXECVE
 
 /*
  * "Conditional" syscalls
index e3dfea71c15f33708a436341f403a4f54191bbd3..2a45718cc5e8e062ef880df8afcdcd6cf9e79295 100644 (file)
@@ -183,27 +183,6 @@ int copy_thread(unsigned long clone_flags,
        return 0;
 }
 
-/*
- * sys_execve() executes a new program.
- */
-asmlinkage int sys_execve(const char *name,
-                         const char *const *argv,
-                         const char *const *envp,
-                         int dummy, ...)
-{
-       int error;
-       struct filename *filename;
-       struct pt_regs *regs = (struct pt_regs *) ((unsigned char *)&dummy-4);
-
-       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 thread_saved_pc(struct task_struct *tsk)
 {
        return ((struct pt_regs *)tsk->thread.esp0)->pc;