summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-05-21 19:16:44 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-05-21 19:16:44 +0200
commit791be9b976ba621b21745c30a7fca225fada9110 (patch)
tree9e3c8d3a0bbb0b614de7daac35f7452f077464fd
parent[PATCH] ARM SMP: reallocate main IRQ handler code registers (diff)
downloadlinux-791be9b976ba621b21745c30a7fca225fada9110.tar.xz
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>
-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
/*