From: Christian Lamparter Date: Sat, 4 Dec 2010 21:43:45 +0000 (+0100) Subject: carl9170 firmware: reinit stack pointer before jumping to bootcode X-Git-Tag: 1.9.2~12 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=feb381cc1ba141d54871796af249e1fe55cfef71;p=carl9170fw.git carl9170 firmware: reinit stack pointer before jumping to bootcode Signed-off-by: Christian Lamparter --- 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