mirror of
https://github.com/boostorg/atomic.git
synced 2026-02-02 08:22:08 +00:00
Although we don't need to store anything after the load, we need to issue strexd to reset the exclusive access mark on the storage address. So we immediately store the loaded value back. The technique to use ldrexd+strexd is described in ARM Architecture Reference Manual ARMv8, Section B2.2.1. Although it is described for ARMv8, the technique should be valid for previous versions as well.