[PATCH 2/2] bsps/gicv3: Resolve build warnings on 64bit

Kinsey Moore kinsey.moore at oarcorp.com
Thu Dec 10 20:42:06 UTC 2020


---
 bsps/shared/dev/irq/arm-gicv3.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bsps/shared/dev/irq/arm-gicv3.c b/bsps/shared/dev/irq/arm-gicv3.c
index 520a728170..db0ad5b952 100644
--- a/bsps/shared/dev/irq/arm-gicv3.c
+++ b/bsps/shared/dev/irq/arm-gicv3.c
@@ -134,13 +134,13 @@
 static volatile gic_redist *gicv3_get_redist(uint32_t cpu_index)
 {
   return (volatile gic_redist *)
-    (BSP_ARM_GIC_REDIST_BASE + cpu_index * 0x20000);
+    ((char*)BSP_ARM_GIC_REDIST_BASE + cpu_index * 0x20000);
 }
 
 static volatile gic_sgi_ppi *gicv3_get_sgi_ppi(uint32_t cpu_index)
 {
   return (volatile gic_sgi_ppi *)
-    (BSP_ARM_GIC_REDIST_BASE + cpu_index * 0x20000 + 0x10000);
+    ((char*)BSP_ARM_GIC_REDIST_BASE + cpu_index * 0x20000 + 0x10000);
 }
 
 void gicvx_interrupt_dispatch(void)
-- 
2.20.1



More information about the devel mailing list