summaryrefslogtreecommitdiffstats
path: root/carl9170fw/carlfw/src/reboot.S
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--carl9170fw/carlfw/src/reboot.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/carl9170fw/carlfw/src/reboot.S b/carl9170fw/carlfw/src/reboot.S
new file mode 100644
index 0000000..14c1813
--- /dev/null
+++ b/carl9170fw/carlfw/src/reboot.S
@@ -0,0 +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
+ .align 4
+stack_start: .long 0x00000004
+eeprom_start: .long 0x00000000