summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-14 17:26:12 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-14 17:26:12 -0600
commit52c3af137d23a76da691471d4950344de6a53c22 (patch)
treec97329487d27e1a1910b537d5352322ac01ca3c3
parent17ba41982a41154bccb47d554dcb5f20a9efd106 (diff)
downloadrtems-52c3af137d23a76da691471d4950344de6a53c22.tar.bz2
sparc/../irq-shared.c: Fix compilation for SMP when not LEON3
-rw-r--r--c/src/lib/libbsp/sparc/shared/irq/irq-shared.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/irq/irq-shared.c b/c/src/lib/libbsp/sparc/shared/irq/irq-shared.c
index 16119ff58c..ab2b4cfcf4 100644
--- a/c/src/lib/libbsp/sparc/shared/irq/irq-shared.c
+++ b/c/src/lib/libbsp/sparc/shared/irq/irq-shared.c
@@ -32,7 +32,8 @@ void BSP_shared_interrupt_init(void)
int i;
for (i=0; i <= BSP_INTERRUPT_VECTOR_MAX_STD; i++) {
-#if defined(RTEMS_SMP) || defined(RTEMS_MULTIPROCESSING)
+#if defined(LEON3_MP_IRQ) && \
+ (defined(RTEMS_SMP) || defined(RTEMS_MULTIPROCESSING))
/* Don't install IRQ handler on IPI interrupt */
if (i == LEON3_MP_IRQ)
continue;