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: "Zhang Jian(Bamvor)" X-Patchwork-Id: 5681 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]; \