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 <ziad.elhanafy@arm.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
  • Loading branch information
ZiadElhanafy committed Oct 7, 2024
1 parent 541eec9 commit cf59076
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 cf59076

Please sign in to comment.