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

Always provide atomic CAS for MSP430 and AVR #31

Merged
merged 1 commit into from
Aug 12, 2022
Merged

Always provide atomic CAS for MSP430 and AVR #31

merged 1 commit into from
Aug 12, 2022

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Aug 12, 2022

This previously required unsafe cfg portable_atomic_unsafe_assume_single_core, but since all MSP430 and AVR are single-core, we can safely provide atomic CAS based on disabling interrupts.

Thanks @cr1901 for pointing out this in pftbest/msp430-atomic#6 (comment).

@taiki-e taiki-e added O-avr Target: AVR O-msp430 Target: MSP430 labels Aug 12, 2022
@taiki-e
Copy link
Owner Author

taiki-e commented Aug 12, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 12, 2022

@bors bors bot merged commit b5fa39e into main Aug 12, 2022
@bors bors bot deleted the single-core branch August 12, 2022 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-avr Target: AVR O-msp430 Target: MSP430
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant