No functional change, but code is way simpler. Signed-off-by: Ahmad Fatoum <ahmad@xxxxxx> --- arch/arm/cpu/board-dt-2nd-aarch64.S | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/cpu/board-dt-2nd-aarch64.S b/arch/arm/cpu/board-dt-2nd-aarch64.S index d32b4066cae2..d2c9f132cef6 100644 --- a/arch/arm/cpu/board-dt-2nd-aarch64.S +++ b/arch/arm/cpu/board-dt-2nd-aarch64.S @@ -9,8 +9,7 @@ .section .text_head_entry_start_dt_2nd ENTRY("start_dt_2nd") -1: - adr x1, 1b /* code0 */ + adr x1, 0 /* code0 */ b 2f /* code1 */ .xword 0x80000 /* Image load offset */ .xword _barebox_image_size /* Effective Image size */ @@ -22,13 +21,9 @@ ENTRY("start_dt_2nd") .int 0 /* reserved (PE-COFF offset) */ .asciz "barebox" /* unused for now */ 2: - ldr x2, linkadr - subs x1, x1, x2 /* get runtime image load offset */ mov sp, x1 /* Stack now grows into the 0x80000 image load offset specified * above. This is more than enough until FDT /memory is decoded. */ b dt_2nd_aarch64 -linkadr: -.xword start_dt_2nd ENTRY_PROC_END(start_dt_2nd) -- 2.30.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox