frv: switch to generic sys_execve()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Sep 2012 02:25:02 +0000 (22:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 1 Oct 2012 04:53:10 +0000 (00:53 -0400)
current_pt_regs() here is simply __frame

Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/frv/include/asm/ptrace.h
arch/frv/include/asm/unistd.h
arch/frv/kernel/process.c

index ef6635ca4ecb3f73a4d7bad1cd044d9b0a1e9750..bd534b2d02583e0c3f64a7d8d97f4a2f79d7dbf4 100644 (file)
@@ -76,6 +76,7 @@ register struct pt_regs *__frame asm("gr28");
 #define user_mode(regs)                        (!((regs)->psr & PSR_S))
 #define instruction_pointer(regs)      ((regs)->pc)
 #define user_stack_pointer(regs)       ((regs)->sp)
+#define current_pt_regs()              (__frame)
 
 extern unsigned long user_stack(const struct pt_regs *);
 #define profile_pc(regs) ((regs)->pc)
index 67f23a311db6e3d5a55ef88b3243c7c01705b469..24b64034866c47c674e5f9c860a433d30d0dd7ad 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 0f02dee25e262c83460fdbf354a9e26409e8ab6f..7ff4dbef0567b8cb59e4bb5741b3717805cbc10f 100644 (file)
@@ -207,25 +207,6 @@ int copy_thread(unsigned long clone_flags,
        return 0;
 } /* end copy_thread() */
 
-/*
- * 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;
-       char * filename;
-
-       filename = getname(name);
-       error = PTR_ERR(filename);
-       if (IS_ERR(filename))
-               return error;
-       error = do_execve(filename, argv, envp, __frame);
-       putname(filename);
-       return error;
-}
-
 unsigned long get_wchan(struct task_struct *p)
 {
        struct pt_regs *regs0;