forked from zephyrproject-rtos/zephyr
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: Enable interrupts for MULTITHREADING=n on supported arch's
Some applications have a use case for a tiny MULTITHREADING=n build (which lacks most of the kernel) but still want special-purpose drivers in that mode that might need to handle interupts. This creates a chicken and egg problem, as arch code (for obvious reasons) runs _Cstart() with interrupts disabled, and enables them only on switching into a newly created thread context. Zephyr does not have a "turn interrupts on now, please" API at the architecture level. So this creates one as an arch-specific wrapper around _arch_irq_unlock(). It's implemented as an optional macro the arch can define to enable this behavior, falling back to the previous scheme (and printing a helpful message) if it doesn't find it defined. Only ARM and x86 are enabled in this patch. Fixes zephyrproject-rtos#8393 Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
- Loading branch information
Showing
4 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters