Skip to content

Commit 033fffe

Browse files
authored
Merge pull request #11208 from kjbracey-arm/atomic_thumb1
Atomics: GCC fix for M23 (again)
2 parents f9eb870 + d31879a commit 033fffe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/internal/mbed_atomic_impl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ extern "C" {
141141
#elif defined __clang__ || defined __GNUC__
142142
#define DO_MBED_LOCKFREE_NEWVAL_2OP_ASM(OP, Constants, M) \
143143
__asm volatile ( \
144+
".syntax unified\n\t" \
144145
"LDREX"#M "\t%[newValue], %[value]\n\t" \
145146
#OP "\t%[newValue], %[arg]\n\t" \
146147
"STREX"#M "\t%[fail], %[newValue], %[value]\n\t" \

0 commit comments

Comments
 (0)