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.
See also Neotron-Compute/Neotron-Common-BIOS#51
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
acquireandreleasewhich the OS can use to implement thecritical-sectioncrate, and re-export to applications.See also Neotron-Compute/Neotron-Common-BIOS#51