projects
/
carl9170fw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ead3ac
)
carl9170 firmware: reinit stack pointer before jumping to bootcode
author
Christian Lamparter
<chunkeey@googlemail.com>
Sat, 4 Dec 2010 21:43:45 +0000
(22:43 +0100)
committer
Christian 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
patch
|
blob
|
history
diff --git
a/carlfw/src/reboot.S
b/carlfw/src/reboot.S
index a344ec357f603dd7ae96d8083ef34e29ac5503a1..14c181388db23850e2da0dccbd0c78021dfb7213 100644
(file)
--- 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