From patchwork Sun May 25 19:41:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 352263 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 20229140091 for ; Mon, 26 May 2014 05:43:08 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=uTBdAcf0wXfxwwXztbQHF6UdNRlMAVh B3VV9ErKhfbYphHuPEScLv6ecvlpFF1hCQv5sj8xhOM7IEJHbGbQVsL0uqhyQ+wP qhIljCsjgcGzkotyuJ9278s7lBJveyUePjzzko9xY731uG9MiqlOGsl6vwDK5M6v hJ2++6stbqJc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=pFCEQjF6aUCTkwVztzkxbwsmwBw=; b=C3rdq aEPMl34499/pHed/TIZ8w4/aO7mbCL3dqS+5psv6vsjDRMQuNhr8hjPBS9YKCKyL 1z73iSKsaaqmGkZSG3+JwGONfw2ZvdfQ58DLRD2rYvFAF6Ucs/sLSL8vzs++mNM8 nlNKa8JbFSYXfRvAfX4FGD7ANCkRBOaXnKR76Q= Received: (qmail 2334 invoked by alias); 25 May 2014 19:42:13 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 2159 invoked by uid 89); 25 May 2014 19:42:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-qg0-f41.google.com X-Received: by 10.140.20.117 with SMTP id 108mr24940892qgi.37.1401046929245; Sun, 25 May 2014 12:42:09 -0700 (PDT) From: Richard Henderson To: libc-alpha@sourceware.org Cc: marcus.shawcroft@gmail.com, Richard Henderson Subject: [PATCH v3 5/9] aarch64: Use tpidr_el0 rather than __read_tp in librt Date: Sun, 25 May 2014 12:41:45 -0700 Message-Id: <1401046909-25821-6-git-send-email-rth@twiddle.net> In-Reply-To: <1401046909-25821-1-git-send-email-rth@twiddle.net> References: <1401046909-25821-1-git-send-email-rth@twiddle.net> From: Richard Henderson --- sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h b/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h index fb37618..483d6fe 100644 --- a/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h +++ b/sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h @@ -113,17 +113,9 @@ extern int __local_multiple_threads attribute_hidden; header.multiple_threads) == 0, 1) # else # define SINGLE_THREAD_P(R) \ - stp x0, x30, [sp, -16]!; \ - cfi_adjust_cfa_offset (16); \ - cfi_rel_offset (x0, 0); \ - cfi_rel_offset (x30, 8); \ - bl __read_tp; \ - sub x0, x0, PTHREAD_SIZEOF; \ - ldr w##R, [x0, PTHREAD_MULTIPLE_THREADS_OFFSET]; \ - ldp x0, x30, [sp], 16; \ - cfi_restore (x0); \ - cfi_restore (x30); \ - cfi_adjust_cfa_offset (-16) + mrs x##R, tpidr_el0; \ + sub x##R, x##R, PTHREAD_SIZEOF; \ + ldr w##R, [x##R, PTHREAD_MULTIPLE_THREADS_OFFSET] # endif # endif