[RTEMS 4.11 PATCH] powerpc/shared: ISA bus bridge fails to enable the openpic irq
chrisj at rtems.org
chrisj at rtems.org
Mon Feb 8 00:57:16 UTC 2021
From: Chris Johns <chrisj at rtems.org>
- The call to enable the openpic irq for the ISA bridge fails
because the IRQ used is offset by the ISA bus signals and
the openpic call expects an IRQ relative to its signals.
- Add the MVME 2600/2700 to the list of boards with an ISA bridge.
Closes #4235
---
c/src/lib/libbsp/powerpc/shared/irq/irq_init.c | 2 +-
c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/shared/irq/irq_init.c b/c/src/lib/libbsp/powerpc/shared/irq/irq_init.c
index a58cd246c4..6e71ec4a67 100644
--- a/c/src/lib/libbsp/powerpc/shared/irq/irq_init.c
+++ b/c/src/lib/libbsp/powerpc/shared/irq/irq_init.c
@@ -310,7 +310,7 @@ void BSP_rtems_irq_mng_init(unsigned cpuId)
#endif
known_cpi_isa_bridge = 1;
}
- if ( currentBoard == MVME_2300 ) {
+ if ( currentBoard == MVME_2300 || MVME_2600_2700_W_MVME761 ) {
/* nothing to do for W83C553 bridge */
known_cpi_isa_bridge = 1;
}
diff --git a/c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c b/c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c
index 80901223b8..f324b56752 100644
--- a/c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c
+++ b/c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c
@@ -214,7 +214,7 @@ int BSP_setup_the_pic(rtems_irq_global_settings* config)
/*
* Must enable PCI/ISA bridge IRQ
*/
- openpic_enable_irq (BSP_PCI_ISA_BRIDGE_IRQ);
+ openpic_enable_irq (BSP_PCI_ISA_BRIDGE_IRQ - BSP_PCI_IRQ_LOWEST_OFFSET);
#endif
#endif
--
2.24.1
More information about the devel
mailing list