diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:05:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:55 -0500 |
commit | 815d5ec86eb8d5f57e5e4aa147bd1fb6338c58ac (patch) | |
tree | fe2e78f38963c0de63e032ec84b25a56ce963bd1 /include/asm-arm/processor.h | |
parent | e7c1b32fd354c34c4dceb1736a485bc5d91f7c43 (diff) |
[PATCH] arm: task_pt_regs()
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-arm/processor.h')
-rw-r--r-- | include/asm-arm/processor.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-arm/processor.h b/include/asm-arm/processor.h index 7d4118e09054..fb5877e5a39b 100644 --- a/include/asm-arm/processor.h +++ b/include/asm-arm/processor.h | |||
@@ -85,9 +85,11 @@ unsigned long get_wchan(struct task_struct *p); | |||
85 | */ | 85 | */ |
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 KSTK_REGS(tsk) (((struct pt_regs *)(THREAD_START_SP + (unsigned long)(tsk)->thread_info)) - 1) | 88 | #define task_pt_regs(p) \ |
89 | #define KSTK_EIP(tsk) KSTK_REGS(tsk)->ARM_pc | 89 | ((struct pt_regs *)(THREAD_START_SP + (void *)(p)->thread_info) - 1) |
90 | #define KSTK_ESP(tsk) KSTK_REGS(tsk)->ARM_sp | 90 | |
91 | #define KSTK_EIP(tsk) task_pt_regs(tsk)->ARM_pc | ||
92 | #define KSTK_ESP(tsk) task_pt_regs(tsk)->ARM_sp | ||
91 | 93 | ||
92 | /* | 94 | /* |
93 | * Prefetching support - only ARMv5. | 95 | * Prefetching support - only ARMv5. |