-
Notifications
You must be signed in to change notification settings - Fork 8.2k
doc: kernel: Clarify relationship between direct and ZLI interrupts #91053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It's tricker than that. The return value is not unused, it's actually used by the direct ISR framework, so the direct ISR of a ZLI must return 0, otherwise we will have kernel code executed in ZLI context. Documented that. |
0bddd7c
|
@ppryga-nordic @andyross @peter-mitsis @bjarki-andreasen @cvinayak |
The documentation did not state clearly that any zero-latency IRQ must also be declared as a direct ISR. This is critical because failure to do so may cause race conditions between the ZLI and regular ISRs when executing the preable/postamble code in regular interrupts. Signed-off-by: Carles Cufi <[email protected]>
|
|
Now that we expect more changes similar to #91119, should there be a small mention about this in either migration guide or release notes (whichever is the right place) to attract more attention to this? |



The documentation did not state clearly that any zero-latency IRQ must also be declared as a direct ISR. This is critical because failure to do so may cause race conditions between the ZLI and regular ISRs when executing the preable/postamble code in regular interrupts.