[rtems commit] sparc/../irq-shared.c: Fix compilation for SMP when not LEON3

Joel Sherrill joel at rtems.org
Thu Nov 14 23:20:40 UTC 2013


Module:    rtems
Branch:    master
Commit:    52c3af137d23a76da691471d4950344de6a53c22
Changeset: http://git.rtems.org/rtems/commit/?id=52c3af137d23a76da691471d4950344de6a53c22

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu Nov 14 17:26:12 2013 -0600

sparc/../irq-shared.c: Fix compilation for SMP when not LEON3

---

 c/src/lib/libbsp/sparc/shared/irq/irq-shared.c |    3 ++-
 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 16119ff..ab2b4cf 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;




More information about the vc mailing list