| To: | linux-mips <linux-mips@linux-mips.org> |
|---|---|
| Subject: | [PATCH] MIPS: Use ei/di for mipsr2. |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Wed, 10 Dec 2008 08:37:25 -0800 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Thunderbird 2.0.0.18 (X11/20081119) |
For mipsr2, 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>
---
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/3] libata: Add two more columns to the ata_timing table., Sergei Shtylyov |
|---|---|
| Next by Date: | Re: [PATCH] MIPS: Use ei/di for mipsr2., Ralf Baechle |
| Previous by Thread: | [PATCH 0/3] libata: Cavium OCTEON SOC Compact Flash driver (v4), David Daney |
| Next by Thread: | Re: [PATCH] MIPS: Use ei/di for mipsr2., Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |