mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Build some nops into CLEAR_STATUS here to make sure that the following
instructions can't be interrupted.
This commit is contained in:
parent
38f836dbb3
commit
c805ff09d5
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue