diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:05:58 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:56 -0500 |
commit | 32d39a9355780bc9aadcf76a2d2004bdbe0f4665 (patch) | |
tree | bd3003a3b13be7d4766e63dbb4c95472bc708125 /include | |
parent | 552058239238342dfd2fa8d33a299a162b1a4f05 (diff) |
[PATCH] arm: task_stack_page()
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')
-rw-r--r-- | include/asm-arm/processor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-arm/processor.h b/include/asm-arm/processor.h index fb5877e5a39b..31290694648b 100644 --- a/include/asm-arm/processor.h +++ b/include/asm-arm/processor.h | |||
@@ -86,7 +86,7 @@ unsigned long get_wchan(struct task_struct *p); | |||
86 | extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); | 86 | extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); |
87 | 87 | ||
88 | #define task_pt_regs(p) \ | 88 | #define task_pt_regs(p) \ |
89 | ((struct pt_regs *)(THREAD_START_SP + (void *)(p)->thread_info) - 1) | 89 | ((struct pt_regs *)(THREAD_START_SP + task_stack_page(p)) - 1) |
90 | 90 | ||
91 | #define KSTK_EIP(tsk) task_pt_regs(tsk)->ARM_pc | 91 | #define KSTK_EIP(tsk) task_pt_regs(tsk)->ARM_pc |
92 | #define KSTK_ESP(tsk) task_pt_regs(tsk)->ARM_sp | 92 | #define KSTK_ESP(tsk) task_pt_regs(tsk)->ARM_sp |