rust-sel4 icon indicating copy to clipboard operation
rust-sel4 copied to clipboard

Improve implementation of `sel4-atomic-ptr`

Open nspin opened this issue 1 year ago • 1 comments

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

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

nspin avatar Sep 18 '24 06:09 nspin

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.

nspin avatar Oct 25 '24 08:10 nspin