Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b38c7399 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Clear ST0_RE on bootup.


    
The reset state is undefined and some firmware doesn't clear this bit
possibly resulting in crashes on entry into userland.
    
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f09678af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1168,7 +1168,7 @@ void __init per_cpu_trap_init(void)
#endif
	if (current_cpu_data.isa_level == MIPS_CPU_ISA_IV)
		status_set |= ST0_XX;
	change_c0_status(ST0_CU|ST0_MX|ST0_FR|ST0_BEV|ST0_TS|ST0_KX|ST0_SX|ST0_UX,
	change_c0_status(ST0_CU|ST0_MX|ST0_RE|ST0_FR|ST0_BEV|ST0_TS|ST0_KX|ST0_SX|ST0_UX,
			 status_set);

	if (cpu_has_dsp)