[PATCH] ARM SMP: add IPI support
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 21 May 2005 17:16:44 +0000 (18:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 May 2005 17:16:44 +0000 (18:16 +0100)
Add support for inter-processor interrupts to the main IRQ
handling code.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
arch/arm/kernel/entry-armv.S

index 8ff82bc75eb1369d161bd54fb0e3158735f1f019..a99e686c0b83861cbcfa07e0abef044e05a7f8fb 100644 (file)
        @
        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
 
 /*