From: David Daney Date: Wed, 10 Dec 2008 16:37:25 +0000 (-0800) Subject: MIPS: Use EI/DI for MIPS R2. X-Git-Tag: v2.6.28-rc9~31^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6354db5bbbc538bf009cae6c019810b4a3ef21d;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: David Daney Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/asmmacro.h b/arch/mips/include/asm/asmmacro.h index 7a88175..6c8342a 100644 --- a/arch/mips/include/asm/asmmacro.h +++ b/arch/mips/include/asm/asmmacro.h @@ -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