mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
MIPS: Clear XContext at boot time
XContext might be dirty at boot time. We need to clear it to ensure early stackframe is safe. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
d82d500f51
commit
c213db6146
@ -132,6 +132,9 @@ dtb_found:
|
||||
#endif
|
||||
|
||||
MTC0 zero, CP0_CONTEXT # clear context register
|
||||
#ifdef CONFIG_64BIT
|
||||
MTC0 zero, CP0_XCONTEXT
|
||||
#endif
|
||||
PTR_LA $28, init_thread_union
|
||||
/* Set the SP after an empty pt_regs. */
|
||||
PTR_LI sp, _THREAD_SIZE - 32 - PT_SIZE
|
||||
|
Loading…
Reference in New Issue
Block a user