[PATCH v3 24/55] KVM: arm/arm64: vgic-new: Add ENABLE registers handlers
Andre Przywara
andre.przywara at arm.com
Wed May 11 07:28:42 PDT 2016
On 11/05/16 15:18, Andre Przywara wrote:
> Would:
>
> #define VGIC_ADDR_IRQ_MASK(bits) GENMASK_ULL((bits) + 10 - 1 - 1, 0)
Nonsense. Must be ... ilog2(bits) ..., of course.
Andre.
> #define VGIC_ADDR_TO_INTID(addr, bits) (((addr) & \
> VGIC_ADDR_IRQ_MASK(bits)) * 64 / (bits) / 8)
>
> work for all bitnesses?
More information about the linux-arm-kernel
mailing list