summaryrefslogtreecommitdiffstats
path: root/include/asm-m32r/ptrace.h
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-01-12 10:05:52 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 18:08:54 +0100
commit6c3559fc458e3ed171d7a8bf6a6d7eaea1e7b2e5 (patch)
treee6c68721887f4f6fbc5aa0c2e6629f30f73f74b2 /include/asm-m32r/ptrace.h
parent[PATCH] v850: task_stack_page(), task_pt_regs() (diff)
downloadlinux-6c3559fc458e3ed171d7a8bf6a6d7eaea1e7b2e5.tar.xz
linux-6c3559fc458e3ed171d7a8bf6a6d7eaea1e7b2e5.zip
[PATCH] m32r: task_pt_regs(), task_stack_page(), task_thread_info()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-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 55cd7ecfde43..0d058b2d844e 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 */