diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2018-04-18 18:51:44 -0700 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-04-19 12:36:37 -0400 |
commit | 8c2943f057c5f69cc6423c360b626bc1ad493230 (patch) | |
tree | 0c2b3811a80af12ef6a02babca85ccf07e17b5ad /arch/arm | |
parent | 749a06b4c55d823d8a74b4e3f607c65006db271b (diff) | |
download | musl-8c2943f057c5f69cc6423c360b626bc1ad493230.tar.gz |
arm: use a_ll/a_sc atomics when building for ARMv6T2
ARMv6 cores with support for Thumb2 can take advantage of the "ldrex"
and "strex" based implementations of a_ll and a_sc.
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/atomic_arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/atomic_arch.h b/arch/arm/atomic_arch.h index 5ff1be1b..62458b45 100644 --- a/arch/arm/atomic_arch.h +++ b/arch/arm/atomic_arch.h @@ -8,7 +8,7 @@ extern uintptr_t __attribute__((__visibility__("hidden"))) __a_cas_ptr, __a_barrier_ptr; #if ((__ARM_ARCH_6__ || __ARM_ARCH_6K__ || __ARM_ARCH_6KZ__ || __ARM_ARCH_6ZK__) && !__thumb__) \ - || __ARM_ARCH_7A__ || __ARM_ARCH_7R__ || __ARM_ARCH >= 7 + || __ARM_ARCH_6T2__ || __ARM_ARCH_7A__ || __ARM_ARCH_7R__ || __ARM_ARCH >= 7 #define a_ll a_ll static inline int a_ll(volatile int *p) |