diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 01:05:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 09:08:54 -0800 |
commit | 6c3559fc458e3ed171d7a8bf6a6d7eaea1e7b2e5 (patch) | |
tree | e6c68721887f4f6fbc5aa0c2e6629f30f73f74b2 /include/asm-m32r/ptrace.h | |
parent | b7f6961d83d480c8636543d1d0dbb9584b878a68 (diff) | |
download | op-kernel-dev-6c3559fc458e3ed171d7a8bf6a6d7eaea1e7b2e5.zip op-kernel-dev-6c3559fc458e3ed171d7a8bf6a6d7eaea1e7b2e5.tar.gz |
[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 'include/asm-m32r/ptrace.h')
-rw-r--r-- | include/asm-m32r/ptrace.h | 3 |
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 */ |