| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH 25/37] Add Cavium OCTEON irq hazard in asmmacro.h. |
| From: | ddaney@caviumnetworks.com |
| Date: | Thu, 23 Oct 2008 17:56:49 -0700 |
| Cc: | David Daney <ddaney@caviumnetworks.com>, Tomaso Paoletti <tpaoletti@caviumnetworks.com> |
| In-reply-to: | <1224809821-5532-1-git-send-email-ddaney@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1224809821-5532-1-git-send-email-ddaney@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: David Daney <ddaney@caviumnetworks.com>
Place irq_enable_hazard and irq_disable_hazard into asmmacro.h
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..5408149 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_CAVIUM_OCTEON)
+ .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
--
1.5.5.1
|
| Previous by Date: | [PATCH 22/37] Add Cavium OCTEON specific registers to ptrace.h and asm-offsets.c, ddaney |
|---|---|
| Next by Date: | [PATCH 26/37] Compute branch returns for Cavium OCTEON specific branch instructions., ddaney |
| Previous by Thread: | [PATCH 22/37] Add Cavium OCTEON specific registers to ptrace.h and asm-offsets.c, ddaney |
| Next by Thread: | [PATCH 26/37] Compute branch returns for Cavium OCTEON specific branch instructions., ddaney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |