summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorUlf Carlsson <md1ulfc@mdstud.chalmers.se>1999-05-07 22:25:11 +0000
committerUlf Carlsson <md1ulfc@mdstud.chalmers.se>1999-05-07 22:25:11 +0000
commit3bdc53f21df6d97a2baefecba050e55ca704bb72 (patch)
tree4d2674c99cd7e6b272dea65ed6dd0f699e37b4fa /arch
parentb3013b5919035dcbff059a4ecfdcefb4bb257b94 (diff)
o indy_sc_wipe corrupted the status register
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/sgi/kernel/indy_sc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/sgi/kernel/indy_sc.c b/arch/mips/sgi/kernel/indy_sc.c
index 9e78a2963..5683ffe66 100644
--- a/arch/mips/sgi/kernel/indy_sc.c
+++ b/arch/mips/sgi/kernel/indy_sc.c
@@ -1,4 +1,4 @@
-/* $Id: indy_sc.c,v 1.5 1998/08/25 09:14:49 ralf Exp $
+/* $Id: indy_sc.c,v 1.6 1999/01/04 16:03:56 ralf Exp $
*
* indy_sc.c: Indy cache managment functions.
*
@@ -38,6 +38,7 @@ static inline void indy_sc_wipe(unsigned long first, unsigned long last)
.set noreorder
.set mips3
.set noat
+ mfc0 $2, $12
li $1, 0x80 # Go 64 bit
mtc0 $1, $12
@@ -50,7 +51,7 @@ static inline void indy_sc_wipe(unsigned long first, unsigned long last)
bne %0, %1, 1b
daddu %0, 32
- mtc0 $0, $12 # Back to 32 bit
+ mtc0 $2, $12 # Back to 32 bit
nop; nop; nop; nop;
.set mips0
.set reorder"