diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-28 14:20:01 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-16 19:03:53 -0400 |
commit | ab3486813bbbd9e74efb4c130183f3994dada4bd (patch) | |
tree | 360d3fd62ca0b9d7940573091b5d700c4471b78a /arch/sparc/include | |
parent | c78e06430ea621ce59d20cb899a9a86bdcf4487b (diff) |
sparc32: switch to generic kernel_execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/ptrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/ptrace.h b/arch/sparc/include/asm/ptrace.h index 7a4075003e76..1e8b81802263 100644 --- a/arch/sparc/include/asm/ptrace.h +++ b/arch/sparc/include/asm/ptrace.h | |||
@@ -90,6 +90,9 @@ static inline bool pt_regs_clear_syscall(struct pt_regs *regs) | |||
90 | #define arch_ptrace_stop(exit_code, info) \ | 90 | #define arch_ptrace_stop(exit_code, info) \ |
91 | synchronize_user_stack() | 91 | synchronize_user_stack() |
92 | 92 | ||
93 | #define current_pt_regs() \ | ||
94 | ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1) | ||
95 | |||
93 | #define user_mode(regs) (!((regs)->psr & PSR_PS)) | 96 | #define user_mode(regs) (!((regs)->psr & PSR_PS)) |
94 | #define instruction_pointer(regs) ((regs)->pc) | 97 | #define instruction_pointer(regs) ((regs)->pc) |
95 | #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP]) | 98 | #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP]) |