The v6m ISA has no way to express a CAS loop natively without turning off the interrupts or using the kernel cmpxchg harness. On such a platform the user has to provide a few __sync_* builtins to satisfy the linker.
const value
The implementation was checked against a few files using std::atomic and compiled using zig c++. Closes #4887