diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-03-25 22:35:07 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-03-25 22:35:07 +0000 |
commit | fbf7f8d08f48f03db03963cb15eceef6e6ae88bd (patch) | |
tree | 83a8c273f854e72626e4a315c2eeb85074288c39 /arch | |
parent | 5c6734844aaa72d367bd07b8785b7fbd38949611 (diff) |
Undo another braino ...
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/sgi/kernel/indy_sc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/mips/sgi/kernel/indy_sc.c b/arch/mips/sgi/kernel/indy_sc.c index b077f7369..2c06a5c53 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.12 1999/10/21 00:23:05 ralf Exp $ +/* $Id: indy_sc.c,v 1.13 1999/12/04 03:59:00 ralf Exp $ * * indy_sc.c: Indy cache managment functions. * @@ -33,11 +33,13 @@ static unsigned long scache_size; static inline void indy_sc_wipe(unsigned long first, unsigned long last) { + unsigned long tmp; + __asm__ __volatile__(" .set noreorder .set mips3 .set noat - mfc0 $2, $12 + mfc0 %2, $12 li $1, 0x80 # Go 64 bit mtc0 $1, $12 @@ -50,12 +52,12 @@ static inline void indy_sc_wipe(unsigned long first, unsigned long last) bne %0, %1, 1b daddu %0, 32 - mtc0 $2, $12 # Back to 32 bit + mtc0 %2, $12 # Back to 32 bit nop; nop; nop; nop; .set mips0 .set reorder" - : /* no output */ - : "r" (first), "r" (last) + : "=r" (first), "=r" (last), "=&r" (tmp) + : "0" (first), "1" (last) : "$1"); } |