Applications and the OS need to be able to enter critical sections in order to safely mutate global variables (we might have signal handlers running under interrupt context, for example).
Add an API for acquire and release which the OS can use to implement the critical-section crate, and re-export to applications.
Applications and the OS need to be able to enter critical sections in order to safely mutate global variables (we might have signal handlers running under interrupt context, for example).
Add an API for
acquire
andrelease
which the OS can use to implement thecritical-section
crate, and re-export to applications.See also https://github.com/Neotron-Compute/Neotron-Common-BIOS/issues/51