mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-09 14:54:30 +03:00
bcad484394
previously I had wrongly assumed the ll/sc instructions also provided memory synchronization; apparently they do not. this commit adds sync instructions before and after each atomic operation and changes the atomic store to simply use sync before and after a plain store, rather than a useless compare-and-swap.