Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiaxun Yang and committed by
Thomas Bogendoerfer
c213db61 d82d500f

+3
+3
arch/mips/kernel/head.S
··· 132 132 #endif 133 133 134 134 MTC0 zero, CP0_CONTEXT # clear context register 135 + #ifdef CONFIG_64BIT 136 + MTC0 zero, CP0_XCONTEXT 137 + #endif 135 138 PTR_LA $28, init_thread_union 136 139 /* Set the SP after an empty pt_regs. */ 137 140 PTR_LI sp, _THREAD_SIZE - 32 - PT_SIZE