Skip to content
Snippets Groups Projects
Commit b6354db5 authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: Use EI/DI for MIPS R2.


For MIPS R2, use the EI and DI instructions to enable and disable
interrupts.

Signed-off-by: default avatarTomaso Paoletti <tpaoletti@caviumnetworks.com>
Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 6c34bc29
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,16 @@ ...@@ -35,6 +35,16 @@
mtc0 \reg, CP0_TCSTATUS mtc0 \reg, CP0_TCSTATUS
_ehb _ehb
.endm .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 #else
.macro local_irq_enable reg=t0 .macro local_irq_enable reg=t0
mfc0 \reg, CP0_STATUS mfc0 \reg, CP0_STATUS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment