aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-09-18 22:25:02 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-01 00:53:10 -0400
commit460dabab73f2f60198c37ed7bf6d192d23eaa286 (patch)
tree6bace3cc9bf5127ad23b7fb9019bd21f40bdf1fa
parent02ce496f152df87be081a64796498942c433a2fd (diff)
frv: switch to generic sys_execve()
current_pt_regs() here is simply __frame Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--arch/frv/include/asm/ptrace.h1
-rw-r--r--arch/frv/include/asm/unistd.h1
-rw-r--r--arch/frv/kernel/process.c19
3 files changed, 2 insertions, 19 deletions
diff --git a/arch/frv/include/asm/ptrace.h b/arch/frv/include/asm/ptrace.h
index ef6635ca4ecb..bd534b2d0258 100644
--- a/arch/frv/include/asm/ptrace.h
+++ b/arch/frv/include/asm/ptrace.h
@@ -76,6 +76,7 @@ register struct pt_regs *__frame asm("gr28");
76#define user_mode(regs) (!((regs)->psr & PSR_S)) 76#define user_mode(regs) (!((regs)->psr & PSR_S))
77#define instruction_pointer(regs) ((regs)->pc) 77#define instruction_pointer(regs) ((regs)->pc)
78#define user_stack_pointer(regs) ((regs)->sp) 78#define user_stack_pointer(regs) ((regs)->sp)
79#define current_pt_regs() (__frame)
79 80
80extern unsigned long user_stack(const struct pt_regs *); 81extern unsigned long user_stack(const struct pt_regs *);
81#define profile_pc(regs) ((regs)->pc) 82#define profile_pc(regs) ((regs)->pc)
diff --git a/arch/frv/include/asm/unistd.h b/arch/frv/include/asm/unistd.h
index 67f23a311db6..24b64034866c 100644
--- a/arch/frv/include/asm/unistd.h
+++ b/arch/frv/include/asm/unistd.h
@@ -372,6 +372,7 @@
372#define __ARCH_WANT_SYS_SIGPROCMASK 372#define __ARCH_WANT_SYS_SIGPROCMASK
373#define __ARCH_WANT_SYS_RT_SIGACTION 373#define __ARCH_WANT_SYS_RT_SIGACTION
374#define __ARCH_WANT_SYS_RT_SIGSUSPEND 374#define __ARCH_WANT_SYS_RT_SIGSUSPEND
375#define __ARCH_WANT_SYS_EXECVE
375 376
376/* 377/*
377 * "Conditional" syscalls 378 * "Conditional" syscalls
diff --git a/arch/frv/kernel/process.c b/arch/frv/kernel/process.c
index 0f02dee25e26..7ff4dbef0567 100644
--- a/arch/frv/kernel/process.c
+++ b/arch/frv/kernel/process.c
@@ -207,25 +207,6 @@ int copy_thread(unsigned long clone_flags,
207 return 0; 207 return 0;
208} /* end copy_thread() */ 208} /* end copy_thread() */
209 209
210/*
211 * sys_execve() executes a new program.
212 */
213asmlinkage int sys_execve(const char __user *name,
214 const char __user *const __user *argv,
215 const char __user *const __user *envp)
216{
217 int error;
218 char * filename;
219
220 filename = getname(name);
221 error = PTR_ERR(filename);
222 if (IS_ERR(filename))
223 return error;
224 error = do_execve(filename, argv, envp, __frame);
225 putname(filename);
226 return error;
227}
228
229unsigned long get_wchan(struct task_struct *p) 210unsigned long get_wchan(struct task_struct *p)
230{ 211{
231 struct pt_regs *regs0; 212 struct pt_regs *regs0;