summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle2009-01-07 00:07:20 +0100
committerRalf Baechle2009-01-11 10:57:28 +0100
commitcde15b5927fea3e1b4de0b277008cf273d8b000b (patch)
treefe125225da41f69ffb920ef5b17d7e30c6b7a31c
parentMIPS: Alchemy: new userspace suspend interface for development boards. (diff)
downloadkernel-qcow2-linux-cde15b5927fea3e1b4de0b277008cf273d8b000b.tar.gz
kernel-qcow2-linux-cde15b5927fea3e1b4de0b277008cf273d8b000b.tar.xz
kernel-qcow2-linux-cde15b5927fea3e1b4de0b277008cf273d8b000b.zip
MIPS: Only write c0_framemask on CPUs which have this register.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/mm/tlb-r4k.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c
index 5ce2fa745626..9619f66e531e 100644
--- a/arch/mips/mm/tlb-r4k.c
+++ b/arch/mips/mm/tlb-r4k.c
@@ -478,7 +478,10 @@ void __cpuinit tlb_init(void)
probe_tlb(config);
write_c0_pagemask(PM_DEFAULT_MASK);
write_c0_wired(0);
- write_c0_framemask(0);
+ if (current_cpu_type() == CPU_R10000 ||
+ current_cpu_type() == CPU_R12000 ||
+ current_cpu_type() == CPU_R14000)
+ write_c0_framemask(0);
temp_tlb_entry = current_cpu_data.tlbsize - 1;
/* From this point on the ARC firmware is dead. */