projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
198688e
)
MIPS: fix kernel_stack_pointer()
author
Huang Pei
<huangpei@loongson.cn>
Fri, 29 Jan 2021 04:35:07 +0000
(12:35 +0800)
committer
Thomas Bogendoerfer
<tsbogend@alpha.franken.de>
Wed, 3 Feb 2021 10:32:52 +0000
(11:32 +0100)
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>
arch/mips/include/asm/ptrace.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/ptrace.h
b/arch/mips/include/asm/ptrace.h
index 1e76774b36ddf28c4ce72ca0a9ed4c8655ded6c9..daf3cf244ea972c9a8bf134a09fa081931645425 100644
(file)
--- a/
arch/mips/include/asm/ptrace.h
+++ b/
arch/mips/include/asm/ptrace.h
@@
-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,