Jump to the relocated board_init_r according to the initial computation and remove computation against current PC addr as relocated address is already known and fixed. This helps to support CPU that miror flash to different address at power on boot such as Freescale iMX1/L
Signed-off-by: Eric Jarrige <eric.jarr...@armadeus.org> Cc: Albert Aribaud <albert.u.b...@aribaud.net> --- arch/arm/cpu/arm920t/start.S | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/arm920t/start.S b/arch/arm/cpu/arm920t/start.S index c308420..5c75289 100644 --- a/arch/arm/cpu/arm920t/start.S +++ b/arch/arm/cpu/arm920t/start.S @@ -292,9 +292,7 @@ _nand_boot_ofs: .word nand_boot #else ldr r0, _board_init_r_ofs - adr r1, _start - add lr, r0, r1 - add lr, lr, r9 + add lr, r0, r6 /* setup parameters for board_init_r */ mov r0, r5 /* gd_t */ mov r1, r6 /* dest_addr */ _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot