summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/ptrace.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-06 06:37:01 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-15 03:26:52 +0400
commit1918c7f548dc5abfb37ab74bb3d036d36c92ba5e (patch)
treec6f1a678fd6dac2ab93579a7246afb27cc7f9f26 /arch/sparc/include/asm/ptrace.h
parentdff933da765fd4855393846fa55286d1ff2d024a (diff)
downloadlinux-1918c7f548dc5abfb37ab74bb3d036d36c92ba5e.tar.xz
sparc64: switch to generic kernel_thread()
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 5b6019e327e5..7a4075003e76 100644
--- a/arch/sparc/include/asm/ptrace.h
+++ b/arch/sparc/include/asm/ptrace.h
@@ -32,6 +32,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)
+
struct global_reg_snapshot {
unsigned long tstate;
unsigned long tpc;