From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12743 Path: news.gmane.org!.POSTED!not-for-mail From: Andre McCurdy Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 2/2] arm: enable a_ll and a_sc helper functions when building for ARMv6T2 Date: Wed, 18 Apr 2018 18:51:44 -0700 Message-ID: <1524102704-8973-3-git-send-email-armccurdy@gmail.com> References: <1524102704-8973-1-git-send-email-armccurdy@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1524102611 23141 195.159.176.226 (19 Apr 2018 01:50:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2018 01:50:11 +0000 (UTC) Cc: Andre McCurdy To: musl@lists.openwall.com Original-X-From: musl-return-12759-gllmg-musl=m.gmane.org@lists.openwall.com Thu Apr 19 03:50:07 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1f8yi5-0005uk-Rq for gllmg-musl@m.gmane.org; Thu, 19 Apr 2018 03:50:05 +0200 Original-Received: (qmail 20455 invoked by uid 550); 19 Apr 2018 01:52:10 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 20368 invoked from network); 19 Apr 2018 01:52:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=A3ciGQqmGEaOAHEv1ueSSsgG+n4TUyvaEn80sN3OlEk=; b=Hsvb+c+3pxe2RW+g9Y8DcSnBuPXey/xcoSeUA+KJjeIAZOjENFd+9lJL190/hvnego s8YjD/qTBnjqTHEWi9zU261C1XTqKqiX71ZLUXP/T5wAKOQ8CEHbXszViGq7puE9Lia/ m0W1u4spjJHNeZxeIHuMhfHVnlIyQ1e7RS+oRKIG1lzp0udAzIob4h3tOd1df6J8p81B 3GmMe9TeZKwLrb+vYWEfpVUVTCE6rpBhBXYv4/T52G5OUy2ExCeopS3LmIVcTf8r4G6m 7FOqybINKGuP0jNUkBPac8dDPVC0afx9c/HKPDe0Vqg4DOkYqtUog/Us1sH506nEi9D6 D5/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=A3ciGQqmGEaOAHEv1ueSSsgG+n4TUyvaEn80sN3OlEk=; b=qolGci34G0yHh2yooZpDxYkHw24mAzZgS3E523LIHqbIbbPLm85DKwa/8fXKULklqQ GFv0PmhQJNwfwWYVfdHkhpOXkh7AsVTC2STTpd2ay0tl6jVktU0/cvuUhojxDep8fxEw VbiV5oWVzwsj97Vrc37grXOnZoAid3IBCdKDKyRZkBajXcLQz7K7nox3HFYGPVeQaT7A wXFtoIkj1BtxBXvw0ttmFevYCQ1xkkgx2J3mh/3IECucqS5w1rEcHKD4SVvTlS5bzpBS ax7FlQ7gMI5b0OgJZylNDDMTOJ9dyeLi1gSQwzlGGNTTw+uY6qsLJvqGOxHvrCEVJtxq k5TA== X-Gm-Message-State: ALQs6tAqIAdu861Z1UpJZ3O0WCorWII/ByHDf+z7ht4tnULmuf2oggNM cE57BTd45R9oaKHrUQ6e4qW4ag== X-Google-Smtp-Source: AIpwx4+i5ORGChYAF+FmJ5C6vSv+vZaqtSeGoktMBxSnl1F0NC3wgciZm1+Hz0bA4ZnthlD7SgZVBw== X-Received: by 10.99.117.2 with SMTP id q2mr3593019pgc.248.1524102716679; Wed, 18 Apr 2018 18:51:56 -0700 (PDT) X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524102704-8973-1-git-send-email-armccurdy@gmail.com> Xref: news.gmane.org gmane.linux.lib.musl.general:12743 Archived-At: ARMv6 cores with support for Thumb2 can take advantage of the "ldrex" and "strex" based implementations of a_ll and a_sc. --- arch/arm/atomic_arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/atomic_arch.h b/arch/arm/atomic_arch.h index 5ff1be1..62458b4 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) -- 1.9.1