Skip to content

Commit

Permalink
Merge pull request #11208 from kjbracey-arm/atomic_thumb1
Browse files Browse the repository at this point in the history
Atomics: GCC fix for M23 (again)
  • Loading branch information
adbridge authored Aug 15, 2019
2 parents f9eb870 + d31879a commit 033fffe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/internal/mbed_atomic_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 033fffe

Please sign in to comment.