Browse Source

fix(gicv3): fix iroute value wrong issue

As mpidr is unsigned long long, U should be ULL. We use macro to
fix this issue.

Signed-off-by: Ming Huang <huangming@linux.alibaba.com>
Change-Id: I7dfd51a63f27f471794bcbf72ffff0c1a0598b46
pull/1978/merge
Ming Huang 3 years ago
committed by Manish Pandey
parent
commit
65bc2d224b
  1. 2
      drivers/arm/gic/v3/gicv3_private.h

2
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);
}

Loading…
Cancel
Save