summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2008-03-20 19:08:52 +0000
committerTill Straumann <strauman@slac.stanford.edu>2008-03-20 19:08:52 +0000
commitd56c6783e5f26a62206049703ad48959b43046cd (patch)
tree573eeaa39a1e8dd15643e456e5611ba285c5c858 /c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c
parentAdd mpfr. (diff)
downloadrtems-d56c6783e5f26a62206049703ad48959b43046cd.tar.bz2
2008-03-20 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/irq.c: don't disable irqs at the interrupt controller (PIC) during initialization -- this caused problems where some BSPs's BSP_disable_irq_at_pic() routine did not ignore IRQ lines associated with cascaded PICs. Rely on the BSP (BSP_setup_the_pic()) to provide a good initial setup.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c')
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c
index 054dd114bf..d972ba9b7b 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c
@@ -353,7 +353,14 @@ int BSP_rtems_irq_mngt_set(rtems_irq_global_settings* config)
/* at least one handler registered */
BSP_enable_irq_at_pic(i);
} else {
+/* Do NOT disable; there might be boards with cascaded
+ * interrupt controllers where the BSP (incorrectly) does
+ * not ignore the cascaded interrupts in BSP_disable_irq_at_pic()!
+ * Instead, we rely on BSP_setup_the_pic() for a good
+ * initial configuration.
+ *
BSP_disable_irq_at_pic(i);
+ */
}
}