projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c34bc2
)
MIPS: Use EI/DI for MIPS R2.
author
David Daney
<
[email protected]
>
Wed, 10 Dec 2008 16:37:25 +0000
(08:37 -0800)
committer
Ralf Baechle
<
[email protected]
>
Fri, 12 Dec 2008 18:12:23 +0000
(18:12 +0000)
For MIPS R2, use the EI and DI instructions to enable and disable
interrupts.
Signed-off-by: Tomaso Paoletti <
[email protected]
>
Signed-off-by: David Daney <
[email protected]
>
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/include/asm/asmmacro.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/asmmacro.h
b/arch/mips/include/asm/asmmacro.h
index 7a881755800f94a4be165b989a9f2f54fb6ffaa1..6c8342ae74db88cd3187d1964274aa03c6031165 100644
(file)
--- 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