mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue