[RFC PATCH v2 10/45] arm64: irqflags: Introduce arm64-specific irqflags type
Vladimir Murzin
vladimir.murzin at arm.com
Mon Aug 3 02:30:46 PDT 2026
On 7/27/26 17:34, Vladimir Murzin wrote:
>
> + /*
> + * Internally, we want to independently manipulate and track the different
> + * interrupt masking mechanisms.
> + * Externally, the generic irqflags API expects unsgined longs to represent
> + * the state of interrupts, which are treated as obscure arch-specific data.
> + */
> +typedef union arm64_exc_hwstate {
> + struct {
> + u16 daif;
> + u8 pmr;
> + u8 __padding[5];
This padding hurts code generation. It is better expressed as:
u8 __pad0;
u32 __pad1;
> + };
> + unsigned long flags;
> +} arm64_exc_hwstate_t;
> +
More information about the linux-arm-kernel
mailing list