summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-12-11 15:53:15 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-12-11 15:53:15 +0000
commit1bb58fdb51c720e86c239ed5957ecac02d9b0920 (patch)
treeb761ebb5e9d9a43b47c391a838a341d937c13d53
parent7fc97040760db9b6cd0c70b5e4bc1e143e0b2d57 (diff)
One more R3k fix from Maciej.
-rw-r--r--arch/mips/kernel/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index 15be0d1dc..1a679e64a 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -142,9 +142,9 @@ static inline int cpu_has_confreg(void)
unsigned long size1, size2;
unsigned long cfg = read_32bit_cp0_register(CP0_CONF);
- size1 = r3k_cache_size(ST0_DE);
+ size1 = r3k_cache_size(ST0_ISC);
write_32bit_cp0_register(CP0_CONF, cfg^CONF_AC);
- size2 = r3k_cache_size(ST0_DE);
+ size2 = r3k_cache_size(ST0_ISC);
write_32bit_cp0_register(CP0_CONF, cfg);
return size1 != size2;
#else