diff options
author | David Daney <ddaney@caviumnetworks.com> | 2008-12-10 08:37:25 -0800 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-12-12 18:12:23 +0000 |
commit | b6354db5bbbc538bf009cae6c019810b4a3ef21d (patch) | |
tree | 589a0f8d25879e2eb1c1a2c14b9b366e2a126950 | |
parent | 6c34bc2976b30dc8b56392c020e25bae1f363cab (diff) | |
download | kernel_samsung_espresso10-b6354db5bbbc538bf009cae6c019810b4a3ef21d.zip kernel_samsung_espresso10-b6354db5bbbc538bf009cae6c019810b4a3ef21d.tar.gz kernel_samsung_espresso10-b6354db5bbbc538bf009cae6c019810b4a3ef21d.tar.bz2 |
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>
-rw-r--r-- | arch/mips/include/asm/asmmacro.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 |