carl9170 firmware: reinit stack pointer before jumping to bootcode
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 4 Dec 2010 21:43:45 +0000 (22:43 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Sat, 4 Dec 2010 21:43:45 +0000 (22:43 +0100)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/src/reboot.S

index a344ec357f603dd7ae96d8083ef34e29ac5503a1..14c181388db23850e2da0dccbd0c78021dfb7213 100644 (file)
@@ -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