From patchwork Tue May 20 20:56:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 1040 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (peon2454.g.dreamhost.com [208.113.200.127]) by wilcox.dreamhost.com (Postfix) with ESMTP id D8E5F360098 for ; Tue, 20 May 2014 13:58:01 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14307373) id 2321A1958AAC; Tue, 20 May 2014 13:58:00 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx21.g.dreamhost.com 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 homiemail-mx21.g.dreamhost.com (Postfix) with ESMTPS id D7D42196772F for ; Tue, 20 May 2014 13:57:59 -0700 (PDT) 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=v/3rqd0jM0LwOVvvSY1OtUgDC2JvFxb 8TzAM82Tb06oA/hbX5mSxtuagUhRn91TIkuI7KkGiRKox+uyxpSjgbPw1PX6Hw9O jo9Rq7CZnMfxhW4n9TIhoJIqnfDbyUaB/KGZMqWep78ciVMSCJOzEWquEBssap3c D180OA4NTi7A= 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=x8sfmke+l4J1tNOEH0716j/ZMjM=; b=mBpfa Igq+wiTFV+kL5FcX7Gb4/n4OBS4eMYZoDOlczDPgbErsu1QcdBprOlCq7qgWBbd1 EnT01KwzTBMIOd5NsOyy+v687iw8dmpWNw1c/XM4LFbEg9VU3zHfcdfGQIsLrReI x9q9JfQSvoWn8k2gK0dJrObsnfmhQ+UcN2KQaw= Received: (qmail 18804 invoked by alias); 20 May 2014 20:57:04 -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 18761 invoked by uid 89); 20 May 2014 20:57:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_STOCKGEN, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-qg0-f47.google.com X-Received: by 10.224.20.72 with SMTP id e8mr60723838qab.86.1400619421578; Tue, 20 May 2014 13:57:01 -0700 (PDT) From: Richard Henderson To: libc-alpha@sourceware.org Cc: marcus.shawcroft@gmail.com, Richard Henderson Subject: [PATCH 6/6] aarch64: Use tpidr_el0 rather than __errno_location in librt Date: Tue, 20 May 2014 13:56:18 -0700 Message-Id: <1400619378-7262-7-git-send-email-rth@twiddle.net> In-Reply-To: <1400619378-7262-1-git-send-email-rth@twiddle.net> References: <1400619378-7262-1-git-send-email-rth@twiddle.net> X-DH-Original-To: glibc@patchwork.siddhesh.in From: Richard Henderson * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Use tpidr_el0 rather than __errno_location. --- sysdeps/unix/sysv/linux/aarch64/sysdep.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h b/sysdeps/unix/sysv/linux/aarch64/sysdep.h index b32a565..73782a6 100644 --- a/sysdeps/unix/sysv/linux/aarch64/sysdep.h +++ b/sysdeps/unix/sysv/linux/aarch64/sysdep.h @@ -123,21 +123,12 @@ # define SYSCALL_ERROR_HANDLER \ .Lsyscall_error: \ - stp x29, x30, [sp, -32]!; \ - cfi_adjust_cfa_offset (32); \ - cfi_rel_offset (x29, 0); \ - cfi_rel_offset (x30, 8); \ - add x29, sp, 0; \ - str x19, [sp,16]; \ - neg x19, x0; \ - bl C_SYMBOL_NAME(__errno_location); \ - str w19, [x0]; \ + adrp x1, :gottprel:errno; \ + neg w2, w0; \ + ldr x1, [x1, :gottprel_lo12:errno]; \ + mrs x3, tpidr_el0; \ mov x0, -1; \ - ldr x19, [sp,16]; \ - ldp x29, x30, [sp], 32; \ - cfi_adjust_cfa_offset (-32); \ - cfi_restore (x29); \ - cfi_restore (x30); \ + str w2, [x1, x3]; \ RET; # endif # else