Skip to content

Commit

Permalink
core: gic: accept GIC version 4 if CFG_ARM_GICV3 is enabled
Browse files Browse the repository at this point in the history
GIC v4 is backwards compatible with GIC v3, Accept GIC
version 4 if CFG_ARM_GICV3 is enabled.

Signed-off-by: Ziad Elhanafy <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
Acked-by: Etienne Carriere <[email protected]>
Reviewed-by: Jens Wiklander <[email protected]>
  • Loading branch information
ZiadElhanafy authored and jforissier committed Oct 11, 2024
1 parent 90cdb7e commit dd18bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/drivers/gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ static void gic_init_base_addr(paddr_t gicc_base_pa, paddr_t gicd_base_pa,
vers &= GICD_PIDR2_ARCHREV_MASK;

if (IS_ENABLED(CFG_ARM_GICV3)) {
assert(vers == 3);
assert(vers == 4 || vers == 3);
} else {
assert(vers == 2 || vers == 1);
gicc_base = core_mmu_get_va(gicc_base_pa, MEM_AREA_IO_SEC,
Expand Down

0 comments on commit dd18bd8

Please sign in to comment.