summaryrefslogtreecommitdiffstats
path: root/carl9170fw/carlfw/src/reboot.S
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 08:03:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 08:03:39 +0000
commit64f5f3b05c4e82229c5834a40a640cbd6811f5b5 (patch)
treea56dfe853667ad38d8c8c5aa7fe81b8aff5ee326 /carl9170fw/carlfw/src/reboot.S
parentInitial commit. (diff)
downloadfirmware-free-64f5f3b05c4e82229c5834a40a640cbd6811f5b5.tar.xz
firmware-free-64f5f3b05c4e82229c5834a40a640cbd6811f5b5.zip
Adding upstream version 20200122.upstream/20200122
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'carl9170fw/carlfw/src/reboot.S')
-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