Minor Issues in sparc/shared/irq-shared.c

Joel Sherrill joel.sherrill at OARcorp.com
Tue Nov 12 15:48:42 UTC 2013


Hi

If SMP is enabled and you try to build anything except
leon3, the irq-shared.c doesn't build because
LEON3_MP_IRQ is not defined.  Is this OK to commit?

diff --git a/c/src/lib/libbsp/powerpc/acinclude.m4
b/c/src/lib/libbsp/powerpc/ac
index e46fa2b..6442399 100644
--- a/c/src/lib/libbsp/powerpc/acinclude.m4
+++ b/c/src/lib/libbsp/powerpc/acinclude.m4
[joel at localhost sparc]$ cd shared/
[joel at localhost shared]$ git diff .
diff --git a/c/src/lib/libbsp/sparc/shared/irq/irq-shared.c
b/c/src/lib/libbsp/s
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;


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the devel mailing list