From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106673 invoked by alias); 24 Aug 2017 12:41:37 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 106609 invoked by uid 9078); 24 Aug 2017 12:41:37 -0000 Date: Thu, 24 Aug 2017 12:41:00 -0000 Message-ID: <20170824124137.106606.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] move ILP32 sanity check on heap base code under ARM_RDI_MONITOR X-Act-Checkin: newlib-cygwin X-Git-Author: Alexander Fedotov-B55613 X-Git-Refname: refs/heads/master X-Git-Oldrev: b706c6b479422d31f0124b92c21b4cb536bbddff X-Git-Newrev: 3ec9892f5dd6240d8b21c8cad7874ea856040626 X-SW-Source: 2017-q3/txt/msg00051.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3ec9892f5dd6240d8b21c8cad7874ea856040626 commit 3ec9892f5dd6240d8b21c8cad7874ea856040626 Author: Alexander Fedotov-B55613 Date: Tue Aug 22 17:06:54 2017 +0300 move ILP32 sanity check on heap base code under ARM_RDI_MONITOR Diff: --- libgloss/aarch64/crt0.S | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libgloss/aarch64/crt0.S b/libgloss/aarch64/crt0.S index 4ad435e..f670e03 100644 --- a/libgloss/aarch64/crt0.S +++ b/libgloss/aarch64/crt0.S @@ -101,10 +101,7 @@ exposed here in the HeapInfo Angel call. */ ldr x0, .LC0 /* point at returned values */ ldr x1, [x0, #8] /* get heap_limit */ -#else - /* Set up the stack pointer to a fixed value. */ - ldr x1, .Lstack -#endif + #ifdef __ILP32__ /* Sanity check on the heap base. */ ldr x0, [x0] /* get heap_base */ @@ -128,6 +125,10 @@ tst x1, #0xffffffff00000000 csinv w1, w1, wzr, eq #endif +#else + /* Set up the stack pointer to a fixed value. */ + ldr x1, .Lstack +#endif /* Ensure quad-word stack alignment. */ and x0, x1, #~15