Skip to content
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

Add critical-section API #106

Open
thejpster opened this issue May 19, 2024 · 0 comments
Open

Add critical-section API #106

thejpster opened this issue May 19, 2024 · 0 comments

Comments

@thejpster
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant