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

Vladimir Murzin <[email protected]> Mon, 3 Aug 2026 13:24:42 +0100
Newsgroups org.infradead.lists.linux-arm-kernel
Message-ID <[email protected]>
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