diff --git a/drivers/arm/gic/v3/gicv3_private.h b/drivers/arm/gic/v3/gicv3_private.h index 93ee1a18d..3af050071 100644 --- a/drivers/arm/gic/v3/gicv3_private.h +++ b/drivers/arm/gic/v3/gicv3_private.h @@ -171,7 +171,7 @@ static inline u_register_t gicd_irouter_val_from_mpidr(u_register_t mpidr, unsigned int irm) { - return (mpidr & ~(U(0xff) << 24)) | + return (mpidr & MPIDR_AFFINITY_MASK) | ((irm & IROUTER_IRM_MASK) << IROUTER_IRM_SHIFT); }