From patchwork Wed Mar 18 10:30:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bamvor Jian Zhang X-Patchwork-Id: 451366 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 DDEDB14009B for ; Wed, 18 Mar 2015 21:51:04 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=fKXaGWIH; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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:mime-version:content-type; q=dns; s=default; b=Vv68W PfwrbZ1po7F3/QWw5IiLnfW1qK38G/91goRkYsM2fDX2YAA50IPAh0weUweatoxM vU+s5iR9M6ztFAiuIa+/Omh6twLOermeKf5MAWyxlFl6JdWkIrx6nYyo365QayFC XBF6LMrxA+vh5d6PyNJiwqcLSFO+5i6bepwONY= 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:mime-version:content-type; s=default; bh=2dF7nNl5I3I 9+j82S50QmOOX+/U=; b=fKXaGWIHYvgVm5nQ3rppmqkuKTlJjpEC4f0euKu0NWd HHe+ErqkdzzPfLH2NaKA1YB2JCwjyLkXi5WrMmX+7HZ3ViHDKqH8n7TRiKvCrrcm bHxBJCIAEw1YrW8SMOUN/ILVrCeiSvsDs/nTOniq+z3leKb4PHYc3LzpbNxE4XNg = Received: (qmail 112226 invoked by alias); 18 Mar 2015 10:50:33 -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 112141 invoked by uid 89); 18 Mar 2015 10:50:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: szxga03-in.huawei.com From: "Zhang Jian(Bamvor)" To: CC: , , , , Subject: [RFC PATCH 1/3] ARM64: ILP32: change register x1 to PTR_REG Date: Wed, 18 Mar 2015 18:30:09 +0800 Message-ID: <1426674611-26427-2-git-send-email-bamvor.zhangjian@huawei.com> In-Reply-To: <1426674611-26427-1-git-send-email-bamvor.zhangjian@huawei.com> References: <1426674611-26427-1-git-send-email-bamvor.zhangjian@huawei.com> MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.5509572B.0107, ss=1, re=0.001, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: eed559a2440844ad162b2a20f7770bf6 From: Yang Yingliang It should use 32-bit register if librt is used by an ILP32 application on ARM64. It could fix mq_timedreceive and mq_timedsend relative testcases in LTP testsuite. Suggested-by: Andrew Pinski Signed-off-by: Yang Yingliang --- sysdeps/unix/sysv/linux/aarch64/sysdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h b/sysdeps/unix/sysv/linux/aarch64/sysdep.h index 3369adb..49ac63e 100644 --- a/sysdeps/unix/sysv/linux/aarch64/sysdep.h +++ b/sysdeps/unix/sysv/linux/aarch64/sysdep.h @@ -108,7 +108,7 @@ .Lsyscall_error: \ adrp x1, :gottprel:errno; \ neg w2, w0; \ - ldr x1, [x1, :gottprel_lo12:errno]; \ + ldr PTR_REG(1), [x1, :gottprel_lo12:errno]; \ mrs x3, tpidr_el0; \ mov x0, -1; \ str w2, [x1, x3]; \