mirror of https://github.com/ARMmbed/mbed-os.git
Atomics: GCC fix for M23 (again)
Add another missing unified syntax directive. Was previously fixed in
03f1ac3ffd
, but the same problem was not addressed in the pending PR that
added the `NEWVAL_2OP` assembler.
pull/11208/head
parent
f8dc035ae4
commit
d31879a1d4
|
@ -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