summaryrefslogtreecommitdiffstats
path: root/arch/m32r/include/asm/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/include/asm/ptrace.h')
-rw-r--r--arch/m32r/include/asm/ptrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/m32r/include/asm/ptrace.h b/arch/m32r/include/asm/ptrace.h
index 4313aa62b51b..c4432f1fb2cf 100644
--- a/arch/m32r/include/asm/ptrace.h
+++ b/arch/m32r/include/asm/ptrace.h
@@ -139,6 +139,8 @@ extern void withdraw_debug_trap(struct pt_regs *regs);
#define task_pt_regs(task) \
((struct pt_regs *)(task_stack_page(task) + THREAD_SIZE) - 1)
+#define current_pt_regs() ((struct pt_regs *) \
+ ((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
#endif /* __KERNEL */