Re: ARM Cortex-R user mode -- should system call handlers be running with external interrupts disabled?
Boie, Andrew P
Interrupts should be unlocked when handling system calls, and indeed a thread in a system call can sleep or be preempted. Sounds like you have found a bug. And a gap in testing, we ought to have a test that validates this.
From: devel@... <devel@...> On Behalf Of phil.erwin@...
Sent: Tuesday, January 14, 2020 4:55 AM
Subject: [Zephyr-devel] ARM Cortex-R user mode -- should system call handlers be running with external interrupts disabled?
I've noticed that on ARM Cortex-R with user mode enabled, that when we enter the system call handlers, such as
z_hdlr_k_str_out(), that interrupts are disabled. It seems to me that external interrupts should be enabled during this time.