We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67026ef commit 0e9268eCopy full SHA for 0e9268e
opal/include/opal/sys/arm64/atomic.h
@@ -73,7 +73,7 @@ static inline bool opal_atomic_compare_exchange_strong_32(opal_atomic_int32_t *a
73
__asm__ __volatile__("1: ldaxr %w0, [%2] \n"
74
" cmp %w0, %w3 \n"
75
" bne 2f \n"
76
- " stxr %w1, %w4, [%2] \n"
+ " stlxr %w1, %w4, [%2] \n"
77
" cbnz %w1, 1b \n"
78
"2: \n"
79
: "=&r"(prev), "=&r"(tmp)
@@ -142,7 +142,7 @@ static inline bool opal_atomic_compare_exchange_strong_64(opal_atomic_int64_t *a
142
__asm__ __volatile__("1: ldaxr %0, [%2] \n"
143
" cmp %0, %3 \n"
144
145
- " stxr %w1, %4, [%2] \n"
+ " stlxr %w1, %4, [%2] \n"
146
147
148
0 commit comments