MIPS: asm: asmmacro: Add MIPS R6 support to the simple EI/DI variants
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Wed, 5 Nov 2014 12:56:40 +0000 (12:56 +0000)
committerMarkos Chandras <markos.chandras@imgtec.com>
Tue, 17 Feb 2015 15:37:18 +0000 (15:37 +0000)
EI/DI instructions are available in MIPS R6 so add the needed
definitions.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
arch/mips/include/asm/asmmacro.h

index 6caf8766b80f161ea7a620ecc33cca7768e1d4b0..b6540cfcc97bb96744c4d57c0a8c570e8db14141 100644 (file)
@@ -19,7 +19,7 @@
 #include <asm/asmmacro-64.h>
 #endif
 
-#ifdef CONFIG_CPU_MIPSR2
+#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_CPU_MIPSR6)
        .macro  local_irq_enable reg=t0
        ei
        irq_enable_hazard