Commit cde15b59 authored by Ralf Baechle's avatar Ralf Baechle

MIPS: Only write c0_framemask on CPUs which have this register.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 61f9c58d
...@@ -478,6 +478,9 @@ void __cpuinit tlb_init(void) ...@@ -478,6 +478,9 @@ void __cpuinit tlb_init(void)
probe_tlb(config); probe_tlb(config);
write_c0_pagemask(PM_DEFAULT_MASK); write_c0_pagemask(PM_DEFAULT_MASK);
write_c0_wired(0); write_c0_wired(0);
if (current_cpu_type() == CPU_R10000 ||
current_cpu_type() == CPU_R12000 ||
current_cpu_type() == CPU_R14000)
write_c0_framemask(0); write_c0_framemask(0);
temp_tlb_entry = current_cpu_data.tlbsize - 1; temp_tlb_entry = current_cpu_data.tlbsize - 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment