diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:05:51 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:54 -0500 |
commit | b7f6961d83d480c8636543d1d0dbb9584b878a68 (patch) | |
tree | 775880d505a3ed00e7bc72a5079183e792325d89 /include/asm-v850/processor.h | |
parent | 04fe6faf10c310480151667e7fe3e06df4208a8e (diff) |
[PATCH] v850: task_stack_page(), 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-v850/processor.h')
-rw-r--r-- | include/asm-v850/processor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-v850/processor.h b/include/asm-v850/processor.h index 98f929427d3d..2d31308935a0 100644 --- a/include/asm-v850/processor.h +++ b/include/asm-v850/processor.h | |||
@@ -98,10 +98,10 @@ unsigned long get_wchan (struct task_struct *p); | |||
98 | 98 | ||
99 | 99 | ||
100 | /* Return some info about the user process TASK. */ | 100 | /* Return some info about the user process TASK. */ |
101 | #define task_tos(task) ((unsigned long)(task)->thread_info + THREAD_SIZE) | 101 | #define task_tos(task) ((unsigned long)task_stack_page(task) + THREAD_SIZE) |
102 | #define task_regs(task) ((struct pt_regs *)task_tos (task) - 1) | 102 | #define task_pt_regs(task) ((struct pt_regs *)task_tos (task) - 1) |
103 | #define task_sp(task) (task_regs (task)->gpr[GPR_SP]) | 103 | #define task_sp(task) (task_pt_regs (task)->gpr[GPR_SP]) |
104 | #define task_pc(task) (task_regs (task)->pc) | 104 | #define task_pc(task) (task_pt_regs (task)->pc) |
105 | /* Grotty old names for some. */ | 105 | /* Grotty old names for some. */ |
106 | #define KSTK_EIP(task) task_pc (task) | 106 | #define KSTK_EIP(task) task_pc (task) |
107 | #define KSTK_ESP(task) task_sp (task) | 107 | #define KSTK_ESP(task) task_sp (task) |