summaryrefslogtreecommitdiffstats
path: root/include/asm-m32r/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-m32r/ptrace.h')
-rw-r--r--include/asm-m32r/ptrace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-m32r/ptrace.h b/include/asm-m32r/ptrace.h
index 55cd7ec..0d058b2 100644
--- a/include/asm-m32r/ptrace.h
+++ b/include/asm-m32r/ptrace.h
@@ -163,6 +163,9 @@ extern void show_regs(struct pt_regs *);
extern void withdraw_debug_trap(struct pt_regs *regs);
+#define task_pt_regs(task) \
+ ((struct pt_regs *)(task_stack_page(task) + THREAD_SIZE) - 1)
+
#endif /* __KERNEL */
#endif /* _ASM_M32R_PTRACE_H */
OpenPOWER on IntegriCloud