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

Improve implementation of sel4-atomic-ptr #184

Open
nspin opened this issue Sep 18, 2024 · 1 comment
Open

Improve implementation of sel4-atomic-ptr #184

nspin opened this issue Sep 18, 2024 · 1 comment

Comments

@nspin
Copy link
Member

nspin commented Sep 18, 2024

Perhaps by leaning more on core::sync::atomic instead of using intrinsics.

See https://github.com/Amanieu/atomic-rs/tree/master for inspiration.

@nspin
Copy link
Member Author

nspin commented Oct 25, 2024

Upon further investigation:

Leaning on core::sync::atomic won't work because core::sync::atomic::Atomic* are implemented using UnsafeCell, which isn't suitable for shared memory. See this explanation for why not.

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