summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-05-21 18:16:44 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-05-21 18:16:44 +0100
commit791be9b976ba621b21745c30a7fca225fada9110 (patch)
tree9e3c8d3a0bbb0b614de7daac35f7452f077464fd /arch/arm/kernel
parent706fdd9faaad5bd52c774190a54c0fd1dfc0f418 (diff)
downloadblackbird-op-linux-791be9b976ba621b21745c30a7fca225fada9110.tar.gz
blackbird-op-linux-791be9b976ba621b21745c30a7fca225fada9110.zip
[PATCH] ARM SMP: add IPI support
Add support for inter-processor interrupts to the main IRQ handling code. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/entry-armv.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
index 8ff82bc75eb1..a99e686c0b83 100644
--- a/arch/arm/kernel/entry-armv.S
+++ b/arch/arm/kernel/entry-armv.S
@@ -34,6 +34,20 @@
@
adrne lr, 1b
bne asm_do_IRQ
+
+#ifdef CONFIG_SMP
+ /*
+ * XXX
+ *
+ * this macro assumes that irqstat (r6) and base (r5) are
+ * preserved from get_irqnr_and_base above
+ */
+ test_for_ipi r0, r6, r5, lr
+ movne r0, sp
+ adrne lr, 1b
+ bne do_IPI
+#endif
+
.endm
/*
OpenPOWER on IntegriCloud