mirror of https://gitee.com/openkylin/linux.git
MIPS: fix kernel_stack_pointer()
MIPS always save kernel stack pointer in regs[29] Signed-off-by: Huang Pei <huangpei@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
198688edbf
commit
a78ddac1bc
|
@ -53,7 +53,7 @@ struct pt_regs {
|
|||
|
||||
static inline unsigned long kernel_stack_pointer(struct pt_regs *regs)
|
||||
{
|
||||
return regs->regs[31];
|
||||
return regs->regs[29];
|
||||
}
|
||||
|
||||
static inline void instruction_pointer_set(struct pt_regs *regs,
|
||||
|
|
Loading…
Reference in New Issue