diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2018-08-01 20:58:10 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2018-08-01 21:02:56 +0300 |
commit | 2ec54fb1d152f7b9bed5224756e552cb7f9609c2 (patch) | |
tree | a35b66031f46db2291b84e306cd98150fe0c1b56 /libgloss | |
parent | 6158b30e3e9b1b582ae60b15d64e775fa1705483 (diff) |
Patch from Richard Earnshaw <Richard.Earnshaw@arm.com>newlib-snapshot-20180802
* aarch64/cpu-init/rdimon-aem-el3.S (cpu_init_hook): Simplify
entry/exit sequences. Add CFI unwind rules.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/aarch64/cpu-init/rdimon-aem-el3.S | 12 |
1 files 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 41db8f90c..9edbccde5 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) |