aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-mips/processor.h b/include/asm-mips/processor.h
index ab3123ea5658..39d2bd50fece 100644
--- a/include/asm-mips/processor.h
+++ b/include/asm-mips/processor.h
@@ -200,7 +200,7 @@ extern void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long
200 200
201unsigned long get_wchan(struct task_struct *p); 201unsigned long get_wchan(struct task_struct *p);
202 202
203#define __KSTK_TOS(tsk) ((unsigned long)(tsk->thread_info) + THREAD_SIZE - 32) 203#define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + THREAD_SIZE - 32)
204#define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk) - 1) 204#define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk) - 1)
205#define KSTK_EIP(tsk) (task_pt_regs(tsk)->cp0_epc) 205#define KSTK_EIP(tsk) (task_pt_regs(tsk)->cp0_epc)
206#define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[29]) 206#define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[29])