summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-11-18 13:22:31 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-11-18 13:22:31 +0000
commit32cc38229ac7538f2346918a09e75413e8861f87 (patch)
tree2a33d3b83f807bf06c5c8ee8c383b532b1f8bef9 /arch/mips/mm
parentef4c5609242bfc8742338fdafa867315ef44e2af (diff)
New configuration option CONFIG_MIPS_UNCACHED. Not yet selectable due
to the manuals documenting ll/sc operation as undefined for uncached memory.
Diffstat (limited to 'arch/mips/mm')
-rw-r--r--arch/mips/mm/r4xx0.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/mm/r4xx0.c b/arch/mips/mm/r4xx0.c
index a255adad1..6f9718bea 100644
--- a/arch/mips/mm/r4xx0.c
+++ b/arch/mips/mm/r4xx0.c
@@ -2689,7 +2689,11 @@ void __init ld_mmu_r4xx0(void)
printk("CPU revision is: %08x\n", read_32bit_cp0_register(CP0_PRID));
+#ifdef CONFIG_MIPS_UNCACHED
+ set_cp0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
+#else
set_cp0_config(CONF_CM_CMASK, CONF_CM_CACHABLE_NONCOHERENT);
+#endif
probe_icache(config);
probe_dcache(config);