drivers: intc: gicv3: add ARM AArch32 affinity comparison

This commit introduces a new comparison for the ARM (AArch32) architecture
in the GICv3 interrupt controller.
It specifically compares the lower 24 bits of the affinity values,
because there is no aff3 in AArch32 or Arm-v7.

Signed-off-by: Guowei Li <15035660024@163.com>
This commit is contained in:
Guowei Li
2025-08-21 19:01:01 +08:00
committed by Anas Nashif
parent 98673d0aad
commit 83cfbc634f

View File

@@ -672,6 +672,11 @@ static bool arm_gic_aff_matching(uint64_t gicr_aff, uint64_t aff)
#if defined(CONFIG_GIC_V3_RDIST_MATCHING_AFF0_ONLY)
uint64_t mask = BIT64_MASK(8);
return (gicr_aff & mask) == (aff & mask);
#elif defined(CONFIG_ARM)
uint64_t mask = BIT64_MASK(24);
/* For ARM (AArch32), only compare aff2:aff1:aff0 (lower 24 bits) */
return (gicr_aff & mask) == (aff & mask);
#else
return gicr_aff == aff;