summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/ptrace.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-09-28 14:20:01 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-16 19:03:53 -0400
commitab3486813bbbd9e74efb4c130183f3994dada4bd (patch)
tree360d3fd62ca0b9d7940573091b5d700c4471b78a /arch/sparc/include/asm/ptrace.h
parentc78e06430ea621ce59d20cb899a9a86bdcf4487b (diff)
sparc32: switch to generic kernel_execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/include/asm/ptrace.h')
-rw-r--r--arch/sparc/include/asm/ptrace.h3
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)
#define arch_ptrace_stop(exit_code, info) \
synchronize_user_stack()
+#define current_pt_regs() \
+ ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
+
#define user_mode(regs) (!((regs)->psr & PSR_PS))
#define instruction_pointer(regs) ((regs)->pc)
#define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])