From patchwork Wed Mar 18 10:30:11 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: 5679 Received: (qmail 28150 invoked by alias); 18 Mar 2015 10:29:28 -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 27625 invoked by uid 89); 18 Mar 2015 10:29:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: szxga02-in.huawei.com From: "Zhang Jian(Bamvor)" To: CC: , , , , Subject: [RFC PATCH 3/3] ARM64: ILP32: change register x##R to PTR_REG (R) Date: Wed, 18 Mar 2015 18:30:11 +0800 Message-ID: <1426674611-26427-4-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 From: Yang Yingliang It should use 32-bit register if libc is used by an ILP32 application on ARM64. It fix the following LTP testcase: mmap03, mmap13, mtest06, mprotect04, shmdt01, hugeshmdt01. Signed-off-by: Yang Yingliang --- sysdeps/aarch64/sysdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/aarch64/sysdep.h b/sysdeps/aarch64/sysdep.h index 6673242..742d23c 100644 --- a/sysdeps/aarch64/sysdep.h +++ b/sysdeps/aarch64/sysdep.h @@ -104,7 +104,7 @@ #define LDST_GLOBAL(OP, R, T, EXPR) \ adrp x##T, :got:EXPR; \ ldr PTR_REG (T), [x##T, #:got_lo12:EXPR]; \ - OP x##R, [x##T]; + OP PTR_REG (R), [x##T]; /* Since C identifiers are not normally prefixed with an underscore on this system, the asm identifier `syscall_error' intrudes on the