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:
Huang Pei 2021-01-29 12:35:07 +08:00 committed by Thomas Bogendoerfer
parent 198688edbf
commit a78ddac1bc
1 changed files with 1 additions and 1 deletions

View File

@ -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,