[PATCH] arm/gicv3: Fix building arm/r52

chrisj at rtems.org chrisj at rtems.org
Mon Jun 20 02:03:14 UTC 2022


From: Chris Johns <chrisj at rtems.org>

---
 bsps/include/dev/irq/arm-gicv3.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bsps/include/dev/irq/arm-gicv3.h b/bsps/include/dev/irq/arm-gicv3.h
index a79368ebdf..aac02fa191 100644
--- a/bsps/include/dev/irq/arm-gicv3.h
+++ b/bsps/include/dev/irq/arm-gicv3.h
@@ -335,7 +335,12 @@ static void gicv3_init_cpu_interface(uint32_t cpu_index)
   }
 
   /* Enable interrupt groups 0 and 1 */
+#ifdef ARM_MULTILIB_ARCH_V4
+  WRITE_SR(ICC_IGRPEN0, 0x1);
+  WRITE_SR(ICC_IGRPEN1, 0x1);
+#else
   gic_icc_write(IGRPEN1, 1);
+#endif
   WRITE_SR(ICC_CTLR, 0x0);
 }
 
-- 
2.24.1



More information about the devel mailing list