From: Andre McCurdy Date: Thu, 19 Apr 2018 01:51:44 +0000 (-0700) Subject: arm: use a_ll/a_sc atomics when building for ARMv6T2 X-Git-Tag: v1.1.20~106 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8c2943f057c5f69cc6423c360b626bc1ad493230;p=oweals%2Fmusl.git 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. --- 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)