Re: [RFC PATCH v2 10/45] arm64: irqflags: Introduce arm64-specific irqflags type
Vladimir Murzin <[email protected]>
| Newsgroups | org.infradead.lists.linux-arm-kernel |
|---|---|
| Message-ID | <[email protected]> |
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;
> +