summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm')
-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)