diff --git a/opal/include/opal/sys/arm64/atomic.h b/opal/include/opal/sys/arm64/atomic.h index 55a4628813e..869f86d751e 100644 --- a/opal/include/opal/sys/arm64/atomic.h +++ b/opal/include/opal/sys/arm64/atomic.h @@ -90,7 +90,7 @@ static inline bool opal_atomic_compare_exchange_strong_32 (volatile int32_t *add __asm__ __volatile__ ("1: ldaxr %w0, [%2] \n" " cmp %w0, %w3 \n" " bne 2f \n" - " stxr %w1, %w4, [%2] \n" + " staxr %w1, %w4, [%2] \n" " cbnz %w1, 1b \n" "2: \n" : "=&r" (prev), "=&r" (tmp) @@ -197,7 +197,7 @@ static inline bool opal_atomic_compare_exchange_strong_64 (volatile int64_t *add __asm__ __volatile__ ("1: ldaxr %0, [%2] \n" " cmp %0, %3 \n" " bne 2f \n" - " stxr %w1, %4, [%2] \n" + " stlxr %w1, %4, [%2] \n" " cbnz %w1, 1b \n" "2: \n" : "=&r" (prev), "=&r" (tmp) diff --git a/opal/mca/pmix/pmix3x/pmix/src/atomics/sys/arm64/atomic.h b/opal/mca/pmix/pmix3x/pmix/src/atomics/sys/arm64/atomic.h index 1026fa5556f..1cb1973c561 100644 --- a/opal/mca/pmix/pmix3x/pmix/src/atomics/sys/arm64/atomic.h +++ b/opal/mca/pmix/pmix3x/pmix/src/atomics/sys/arm64/atomic.h @@ -91,7 +91,7 @@ static inline bool pmix_atomic_compare_exchange_strong_32 (pmix_atomic_int32_t * __asm__ __volatile__ ("1: ldaxr %w0, [%2] \n" " cmp %w0, %w3 \n" " bne 2f \n" - " stxr %w1, %w4, [%2] \n" + " stlxr %w1, %w4, [%2] \n" " cbnz %w1, 1b \n" "2: \n" : "=&r" (prev), "=&r" (tmp) @@ -198,7 +198,7 @@ static inline bool pmix_atomic_compare_exchange_strong_64 (pmix_atomic_int64_t * __asm__ __volatile__ ("1: ldaxr %0, [%2] \n" " cmp %0, %3 \n" " bne 2f \n" - " stxr %w1, %4, [%2] \n" + " stlxr %w1, %4, [%2] \n" " cbnz %w1, 1b \n" "2: \n" : "=&r" (prev), "=&r" (tmp)