diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-28 22:20:01 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-17 03:03:53 +0400 |
commit | ab3486813bbbd9e74efb4c130183f3994dada4bd (patch) | |
tree | 360d3fd62ca0b9d7940573091b5d700c4471b78a /arch/sparc/include/asm/ptrace.h | |
parent | c78e06430ea621ce59d20cb899a9a86bdcf4487b (diff) | |
download | linux-ab3486813bbbd9e74efb4c130183f3994dada4bd.tar.xz |
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.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) #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]) |