-
Notifications
You must be signed in to change notification settings - Fork 77
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
Support architectures without atomics with polyfill #115
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Could you add some documentation about the need to add a critical-section
implementation when using this on the corresponding architectures?
Could you also add an entry about this change to the changelog?
Actually, atomic-polyfill
should be replaced with portable-atomic
but it is not there yet so I'm fine with going ahead with this merge and replacing it later on.
See rust-embedded/heapless#328 for context.
Oh I wasn't aware of that, good to know. Should I create an issue and/or add a |
Yes, please create a follow-up issue. |
I created #118. Should I also add a TODO in the Cargo.toml? Also, I might be misunderstanding something, but it looks like taiki-e/portable-atomic#51 is merged. And I would assume we can already use |
I intend to deprecate the Which architecture are you trying to use? Is it (btw The trouble with |
FWIW, if the required atomic operations are only load/store, |
Thanks for the explanation and pointers! Indeed, I confirm using If this PR looks good, I'll just close #118 as obsolete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you everybody!
No description provided.