MIPS: Use ei/di for mipsr2.
PATCH 1/1 MIPS: Use ei/di for mipsr2.
For mipsr2, use the ei and di instructions to enable and disable interrupts.
Signed-off-by Tomaso Paoletti <[email protected]>
Signed-off-by David Daney <[email protected]>
---arch/mips/include/asm/asmmacro.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
arch/mips/include/asm/asmmacro.h +0 -0
@@ -35,6 +35,16 @@
mtc0 \reg, CP0_TCSTATUS _ehb .endm
+#elif defined(CONFIG_CPU_MIPSR2)
+ .macro local_irq_enable reg=t0
+ ei
+ irq_enable_hazard
+ .endm
+
+ .macro local_irq_disable reg=t0
+ di
+ irq_disable_hazard
+ .endm
#else .macro local_irq_enable reg=t0 mfc0 \reg, CP0_STATUS
Ralf Baechle
AppliedQuoted 2 lines · David Daney
For mipsr2, use the ei and di instructions to enable and disable interrupts.
Thanks for breaking this one out; this is something that was simply somehow missed when the inline assembler versions were changed.
Applied,
Ralf