mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] v850: task_stack_page(), task_pt_regs()
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
04fe6faf10
commit
b7f6961d83
3 changed files with 6 additions and 6 deletions
|
|
@ -98,10 +98,10 @@ unsigned long get_wchan (struct task_struct *p);
|
|||
|
||||
|
||||
/* Return some info about the user process TASK. */
|
||||
#define task_tos(task) ((unsigned long)(task)->thread_info + THREAD_SIZE)
|
||||
#define task_regs(task) ((struct pt_regs *)task_tos (task) - 1)
|
||||
#define task_sp(task) (task_regs (task)->gpr[GPR_SP])
|
||||
#define task_pc(task) (task_regs (task)->pc)
|
||||
#define task_tos(task) ((unsigned long)task_stack_page(task) + THREAD_SIZE)
|
||||
#define task_pt_regs(task) ((struct pt_regs *)task_tos (task) - 1)
|
||||
#define task_sp(task) (task_pt_regs (task)->gpr[GPR_SP])
|
||||
#define task_pc(task) (task_pt_regs (task)->pc)
|
||||
/* Grotty old names for some. */
|
||||
#define KSTK_EIP(task) task_pc (task)
|
||||
#define KSTK_ESP(task) task_sp (task)
|
||||
|
|
|
|||
Loading…
Reference in a new issue