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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user