-
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hi! I stumbled upon this crate while researching some unrelated things, and it looks like it could make an excellent replacement for our ad-hoc atomics polyfill on Hubris for ARMv6-M.
However, our situation is slightly weird: as far as I can tell, we're some of the only folks in the embedded Rust world who are using the privileged/unprivileged modes of the processor. We're also using memory protection to isolate unprivileged tasks, and do not permit threading within a task.
This means our atomic polyfill within tasks winds up not generating the cpsid
/cpsie
instructions that you'd use in a threaded privileged context.
Would y'all be open to a PR adding an additional feature (with a name including the word unsafe
and possibly some screaming) to suppress generation of the cpsid
/cpsie
instructions?