Skip to content

Add portable-atomic feature for thumbv6m support - #24

Merged
sosthene-nitrokey merged 2 commits into
trussed-dev:mainfrom
orielhaim:fix/thumbv6m-atomics
Nov 20, 2026
Merged

sosthene-nitrokey merged 2 commits into
trussed-dev:mainfrom
orielhaim:fix/thumbv6m-atomics

Conversation

@orielhaim

@orielhaim orielhaim commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Adds optional portable-atomic support for targets without native atomic RMW operations, including Cortex-M0/M0+ (RP2040) and RISC-V

These targets don't support operations like compare_exchange and fetch_add, causing compilation errors

With the feature enabled, the atomic types come from portable-atomic instead of core, with critical-section support where needed

Default and loom builds remain unchanged

@sosthene-nitrokey
sosthene-nitrokey merged commit 0ad6af8 into trussed-dev:main Nov 20, 2026
2 checks passed
@orielhaim
orielhaim deleted the fix/thumbv6m-atomics branch November 21, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants