mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11208 from kjbracey-arm/atomic_thumb1
Atomics: GCC fix for M23 (again)pull/11188/head
commit
033fffea84
|
@ -141,6 +141,7 @@ extern "C" {
|
|||
#elif defined __clang__ || defined __GNUC__
|
||||
#define DO_MBED_LOCKFREE_NEWVAL_2OP_ASM(OP, Constants, M) \
|
||||
__asm volatile ( \
|
||||
".syntax unified\n\t" \
|
||||
"LDREX"#M "\t%[newValue], %[value]\n\t" \
|
||||
#OP "\t%[newValue], %[arg]\n\t" \
|
||||
"STREX"#M "\t%[fail], %[newValue], %[value]\n\t" \
|
||||
|
|
Loading…
Reference in New Issue