Skip to content

Always provide atomic CAS for MSP430 and AVR - #31

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

bors[bot] merged 1 commit into
mainfrom
single-core

Conversation

@taiki-e

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

Copy link
Copy Markdown
Owner

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

taiki-e commented Aug 12, 2022

Copy link
Copy Markdown
Owner Author

bors r+

@bors

bors Bot commented Aug 12, 2022

Copy link
Copy Markdown
Contributor

@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