From c805ff09d5367d8781df85c3641f529033ac30fe Mon Sep 17 00:00:00 2001 From: Juli Mallett Date: Fri, 23 Apr 2010 19:48:31 +0000 Subject: [PATCH] Build some nops into CLEAR_STATUS here to make sure that the following instructions can't be interrupted. --- sys/mips/mips/exception.S | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/mips/mips/exception.S b/sys/mips/mips/exception.S index aa2a0a6b5e9..d6fbc9cbd44 100644 --- a/sys/mips/mips/exception.S +++ b/sys/mips/mips/exception.S @@ -230,13 +230,15 @@ SlowFault: or a0, a0, a2 ; \ li a2, ~(MIPS_SR_INT_IE | MIPS_SR_EXL | SR_KSU_USER) ; \ and a0, a0, a2 ; \ - mtc0 a0, COP_0_STATUS_REG + mtc0 a0, COP_0_STATUS_REG ; \ + ITLBNOPFIX #else #define CLEAR_STATUS \ mfc0 a0, COP_0_STATUS_REG ;\ li a2, ~(MIPS_SR_INT_IE | MIPS_SR_EXL | SR_KSU_USER) ; \ and a0, a0, a2 ; \ - mtc0 a0, COP_0_STATUS_REG + mtc0 a0, COP_0_STATUS_REG ; \ + ITLBNOPFIX #endif /*