[RFC PATCH v2 16/45] arm64: interrupts: Introduce exception masking save/restore helpers

Vladimir Murzin vladimir.murzin at arm.com
Mon Aug 3 05:24:42 PDT 2026


On 7/28/26 12:56, Jinjie Ruan wrote:
>> +static __always_inline
>> +void __local_exceptions_cpu_init_mask(arm64_exc_context_t context)
>> +{
>> +	if (context == PROCESS_CONTEXT)
>> +		trace_hardirqs_on();
>> +
>> +	arm64_update_exc_context(context);
> Is following miss for setup_arch()?
> 
>       if (context == NOIRQ_CONTEXT)
> 	  trace_hardirqs_off();
> 

Yup. Perhaps better do

      if (context != PROCESS_CONTEXT)
	  trace_hardirqs_off();

I'll fix that in the next version.

Cheers
Vladimir



More information about the linux-arm-kernel mailing list