From 3bdc53f21df6d97a2baefecba050e55ca704bb72 Mon Sep 17 00:00:00 2001 From: Ulf Carlsson Date: Fri, 7 May 1999 22:25:11 +0000 Subject: o indy_sc_wipe corrupted the status register --- arch/mips/sgi/kernel/indy_sc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'arch') 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" -- cgit v1.2.3