[PATCH 03/38] arm64: interrupts: Add common exception state helpers

Ashok Raj ashok.raj at oss.qualcomm.com
Mon Sep 21 16:13:19 PDT 2026


On Mon, Sep 21, 2026 at 03:10:32PM +0100, Vladimir Murzin wrote:
> On 9/17/26 10:10, Jinjie Ruan wrote:
> > 
> > 在 2026/9/14 18:20, Vladimir Murzin 写道:
> >> From: Ada Couprie Diaz <ada.coupriediaz at arm.com>
> >>
> 
> [snip]
> 
> >> +
> >> +static __always_inline
> >> +arm64_exc_hwstate_t arm64_inherit_exc_hwstate(struct pt_regs *regs)

Minor, this isn't inheriting but rather reads a hwstate out? 
maybe arm64_exc_hwstate_of_reg() or something like that..
> >> +{
> >> +	arm64_exc_hwstate_t state = {.daif=regs->pstate & DAIF_MASK};
> >> +
> >> +	if (system_uses_irq_prio_masking())
> >> +		state.pmr = regs->pmr;
> >> +
> >> +	return state;
> >> +}

Otherwise 

Reviewed-by: Ashok Raj <ashok.raj at oss.qualcomm.com>



More information about the linux-arm-kernel mailing list