about summary refs log tree commit diff
path: root/arch
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2018-04-18 18:51:44 -0700
committerRich Felker <dalias@aerifal.cx>2018-04-19 12:36:37 -0400
commit8c2943f057c5f69cc6423c360b626bc1ad493230 (patch)
tree0c2b3811a80af12ef6a02babca85ccf07e17b5ad /arch
parent749a06b4c55d823d8a74b4e3f607c65006db271b (diff)
downloadmusl-8c2943f057c5f69cc6423c360b626bc1ad493230.tar.gz
musl-8c2943f057c5f69cc6423c360b626bc1ad493230.tar.xz
musl-8c2943f057c5f69cc6423c360b626bc1ad493230.zip
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')
-rw-r--r--arch/arm/atomic_arch.h2
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)