diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-02-07 02:20:43 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-02-07 14:30:26 +0100 |
commit | b38c73995f63fe205c0068cb0ce3131895244068 (patch) | |
tree | d562c06e5639fbe08d7bee7b5ef471e7769ecf4e | |
parent | [MIPS] TX49x7: Fix reporting of the CPU name and PCI clock (diff) | |
download | linux-b38c73995f63fe205c0068cb0ce3131895244068.tar.xz linux-b38c73995f63fe205c0068cb0ce3131895244068.zip |
[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: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 59a187956de0..c9d2b5147ca3 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -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) |