This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC PATCH 1/3] ARM64: ILP32: change register x1 to PTR_REG
- From: "Zhang Jian(Bamvor)" <bamvor dot zhangjian at huawei dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: <apinski at cavium dot com>, <yangyingliang at huawei dot com>, <bintian dot wang at huawei dot com>, <dingtianhong at huawei dot com>, <bamvor dot zhangjian at huawei dot com>
- Date: Wed, 18 Mar 2015 18:30:09 +0800
- Subject: [RFC PATCH 1/3] ARM64: ILP32: change register x1 to PTR_REG
- Authentication-results: sourceware.org; auth=none
- References: <1426674611-26427-1-git-send-email-bamvor dot zhangjian at huawei dot com>
From: Yang Yingliang <yangyingliang@huawei.com>
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 <apinski@cavium.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
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]; \
--
1.8.4.5