mn10300: switch to generic sys_execve()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Sep 2012 17:08:13 +0000 (13:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 1 Oct 2012 04:53:58 +0000 (00:53 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mn10300/include/asm/ptrace.h
arch/mn10300/include/asm/unistd.h
arch/mn10300/kernel/process.c

index 44251b974f1d96d4931e4704d9433163eb070962..08ac856c053e67f915958fdbe5f20d67c48970ae 100644 (file)
@@ -86,6 +86,7 @@ struct pt_regs {
 #define user_mode(regs)                        (((regs)->epsw & EPSW_nSL) == EPSW_nSL)
 #define instruction_pointer(regs)      ((regs)->pc)
 #define user_stack_pointer(regs)       ((regs)->sp)
+#define current_pt_regs()              current_frame()
 
 #define arch_has_single_step() (1)
 
index 866eb14749d7701cb4dafce5566d8aa00df18fe6..a965de47b2bd03d146e1a260b5daf735b5d5826c 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 be87fbee4da57d0591c882f726a10a5a9f04c704..49af5ca893434e497ff6dca071497853f031cdc6 100644 (file)
@@ -283,22 +283,6 @@ asmlinkage long sys_vfork(void)
                       current_frame(), 0, NULL, NULL);
 }
 
-asmlinkage long sys_execve(const char __user *name,
-                          const char __user *const __user *argv,
-                          const char __user *const __user *envp)
-{
-       char *filename;
-       int error;
-
-       filename = getname(name);
-       error = PTR_ERR(filename);
-       if (IS_ERR(filename))
-               return error;
-       error = do_execve(filename, argv, envp, current_frame());
-       putname(filename);
-       return error;
-}
-
 unsigned long get_wchan(struct task_struct *p)
 {
        return p->thread.wchan;