From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108892 invoked by alias); 1 Aug 2018 18:03:17 -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 108827 invoked by uid 447); 1 Aug 2018 18:03:16 -0000 Date: Wed, 01 Aug 2018 18:03:00 -0000 Message-ID: <20180801180316.108824.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jeff Johnston To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Patch from Richard Earnshaw X-Act-Checkin: newlib-cygwin X-Git-Author: Jeff Johnston X-Git-Refname: refs/heads/master X-Git-Oldrev: 6158b30e3e9b1b582ae60b15d64e775fa1705483 X-Git-Newrev: 2ec54fb1d152f7b9bed5224756e552cb7f9609c2 X-SW-Source: 2018-q3/txt/msg00032.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=2ec54fb1d152f7b9bed5224756e552cb7f9609c2 commit 2ec54fb1d152f7b9bed5224756e552cb7f9609c2 Author: Jeff Johnston Date: Wed Aug 1 13:58:10 2018 -0400 Patch from Richard Earnshaw * aarch64/cpu-init/rdimon-aem-el3.S (cpu_init_hook): Simplify entry/exit sequences. Add CFI unwind rules. Diff: --- libgloss/aarch64/cpu-init/rdimon-aem-el3.S | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libgloss/aarch64/cpu-init/rdimon-aem-el3.S b/libgloss/aarch64/cpu-init/rdimon-aem-el3.S index 41db8f9..9edbccd 100644 --- a/libgloss/aarch64/cpu-init/rdimon-aem-el3.S +++ b/libgloss/aarch64/cpu-init/rdimon-aem-el3.S @@ -157,12 +157,16 @@ ttb: .align 2 .global FUNCTION (_cpu_init_hook) .type FUNCTION (_cpu_init_hook), %function + .cfi_sections .debug_frame FUNCTION (_cpu_init_hook): - sub sp, sp, #16 - str x30, [sp, xzr] + .cfi_startproc + str x30, [sp, -16]! + .cfi_def_cfa_offset 16 + .cfi_offset 30, -16 bl _init_vectors bl _flat_map - ldr x30, [sp, xzr] - add sp, sp, #16 + ldr x30, [sp], 16 + .cfi_restore 30 ret + .cfi_endproc .size FUNCTION (_cpu_init_hook), .-FUNCTION (_cpu_init_hook)