summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/r2300.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-06-10 16:21:20 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-06-10 16:21:20 +0000
commit47fe249eebda133fd5c8d62661092e4a370fbcb6 (patch)
tree566b5aeb399c7fbb72065d25eaa4d60234bb1cf2 /arch/mips/mm/r2300.c
parent4c2d47edfd6114ce818a93c97a5f34ca38c6c5f3 (diff)
Fix another instance of save_and_cli vs. read_32bit_cp0_register.
Diffstat (limited to 'arch/mips/mm/r2300.c')
-rw-r--r--arch/mips/mm/r2300.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/mm/r2300.c b/arch/mips/mm/r2300.c
index edc65eabd..f7f722a48 100644
--- a/arch/mips/mm/r2300.c
+++ b/arch/mips/mm/r2300.c
@@ -389,7 +389,7 @@ static void r3k_flush_cache_sigtramp(unsigned long addr)
printk("csigtramp[%08lx]", addr);
#endif
- save_and_cli(flags);
+ flags = read_32bit_cp0_register(CP0_STATUS);
write_32bit_cp0_register(CP0_STATUS, (ST0_ISC|ST0_SWC|flags)&~ST0_IEC);
@@ -398,7 +398,7 @@ static void r3k_flush_cache_sigtramp(unsigned long addr)
"sb\t$0,0x008(%0)\n\t"
: : "r" (addr) );
- restore_flags(flags);
+ write_32bit_cp0_register(CP0_STATUS, flags);
}
static void r3k_dma_cache_wback_inv(unsigned long start, unsigned long size)