Skip to content

Always provide atomic CAS for MSP430 and AVR#31

Merged
bors[bot] merged 1 commit intomainfrom
single-core
Aug 12, 2022
Merged

Always provide atomic CAS for MSP430 and AVR#31
bors[bot] merged 1 commit intomainfrom
single-core

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