From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Jarrige Date: Wed, 10 Aug 2011 22:33:45 +0200 Subject: [U-Boot] [PATCH 9/9] arm920t: Fix jump to the relocated board_init_r In-Reply-To: <20110810200828.21204.60050.stgit@shuttle2.etheralp.ch> References: <20110810200828.21204.60050.stgit@shuttle2.etheralp.ch> Message-ID: <20110810203345.21204.43060.stgit@shuttle2.etheralp.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Cc: Albert Aribaud --- 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 */