Skip to content

atomic_v7: add memory barriers to atomic bit RMW#808

Open
bsek wants to merge 1 commit into
aros-development-team:masterfrom
bsek:armv7-atomic-barriers
Open

atomic_v7: add memory barriers to atomic bit RMW#808
bsek wants to merge 1 commit into
aros-development-team:masterfrom
bsek:armv7-atomic-barriers

Conversation

@bsek

@bsek bsek commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The bitwise ldrex/strex RMW had no barriers, so a later load could be reordered ahead of the atomic write (e.g. signal.c sets tc_SigRecvd then reads tc_State). Bracket the loop with dmb and add the memory clobber to give the operation sequential-consistency ordering.

The bitwise ldrex/strex RMW had no barriers, so a later load could be
reordered ahead of the atomic write (e.g. signal.c sets tc_SigRecvd then
reads tc_State). Bracket the loop with dmb and add the memory clobber to
give the operation sequential-consistency ordering.
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.

1 participant