From feb381cc1ba141d54871796af249e1fe55cfef71 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sat, 4 Dec 2010 22:43:45 +0100 Subject: [PATCH] carl9170 firmware: reinit stack pointer before jumping to bootcode Signed-off-by: Christian Lamparter --- carlfw/src/reboot.S | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/carlfw/src/reboot.S b/carlfw/src/reboot.S index a344ec3..14c1813 100644 --- a/carlfw/src/reboot.S +++ b/carlfw/src/reboot.S @@ -1,7 +1,11 @@ .globl _jump_to_bootcode .type _jump_to_bootcode, @function _jump_to_bootcode: + mov.l stack_start, r0 + mov.l @r0, sp mov.l eeprom_start, r0 + mov.l @r0, r0 jmp @r0 -eeprom_start: .long 0x00000008 -tmp: .long + .align 4 +stack_start: .long 0x00000004 +eeprom_start: .long 0x00000000 -- 2.31.1