mirror of
git://git.musl-libc.org/musl
synced 2025-03-01 01:00:31 +00:00
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. |
||
---|---|---|
.. | ||
arm | ||
i386 | ||
microblaze | ||
mips | ||
or1k | ||
powerpc | ||
sh | ||
x32 | ||
x86_64 |