From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Tue, 9 Jun 2015 19:05:00 +0200 Subject: [U-Boot] [PATCH] Nokia RX-51: Fix calculating return address in save_boot_params In-Reply-To: <201506091823.46395@pali> References: <201506091823.46395@pali> Message-ID: <1433869500-23728-1-git-send-email-pali.rohar@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Commit e11c6c279d823dc0d2f470c5c2e3c0a9854a640f broke calculating lr register in function save_boot_params() and caused U-Boot to crash at early boot time on Nokia N900 board. This patch fix calculating return address in lr register and make Nokia N900 board bootable again. Patch was tested in qemu and also on real N900 HW. Signed-off-by: Pali Roh?r --- board/nokia/rx51/lowlevel_init.S | 4 ---- 1 file changed, 4 deletions(-) diff --git a/board/nokia/rx51/lowlevel_init.S b/board/nokia/rx51/lowlevel_init.S index 9d4ea1b..420ad13 100644 --- a/board/nokia/rx51/lowlevel_init.S +++ b/board/nokia/rx51/lowlevel_init.S @@ -105,10 +105,6 @@ fix_start: /* r6 - maximal u-boot size */ ldr r6, imagesize - /* fix return address */ - subhi lr, lr, r5 - addlo lr, lr, r5 - /* r1 - start of u-boot after */ ldr r1, startaddr -- 1.7.9.5