Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Use EI/DI for MIPS R2.

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

Signed-off-by: Tomaso Paoletti <tpaoletti@caviumnetworks.com>
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

David Daney and committed by
Ralf Baechle
b6354db5 6c34bc29

+10
+10
arch/mips/include/asm/asmmacro.h
··· 35 35 mtc0 \reg, CP0_TCSTATUS 36 36 _ehb 37 37 .endm 38 + #elif defined(CONFIG_CPU_MIPSR2) 39 + .macro local_irq_enable reg=t0 40 + ei 41 + irq_enable_hazard 42 + .endm 43 + 44 + .macro local_irq_disable reg=t0 45 + di 46 + irq_disable_hazard 47 + .endm 38 48 #else 39 49 .macro local_irq_enable reg=t0 40 50 mfc0 \reg, CP0_STATUS