summaryrefslogtreecommitdiffstats
path: root/Src/osmocom-bb/src/target/firmware/board/compal/start.rom.S
diff options
context:
space:
mode:
authorTom2011-06-17 18:21:43 +0200
committerTom2011-06-17 18:21:43 +0200
commit8abd9a968f1aaea16239b1de7d627fb54160257f (patch)
treef9e28f25a0e4561c9dd3a1d6b5ba51e6e6954d46 /Src/osmocom-bb/src/target/firmware/board/compal/start.rom.S
parentinitial commit .. (diff)
downloadimsi-catcher-detection-8abd9a968f1aaea16239b1de7d627fb54160257f.tar.gz
imsi-catcher-detection-8abd9a968f1aaea16239b1de7d627fb54160257f.tar.xz
imsi-catcher-detection-8abd9a968f1aaea16239b1de7d627fb54160257f.zip
Initial Commit
Diffstat (limited to 'Src/osmocom-bb/src/target/firmware/board/compal/start.rom.S')
-rw-r--r--Src/osmocom-bb/src/target/firmware/board/compal/start.rom.S32
1 files changed, 32 insertions, 0 deletions
diff --git a/Src/osmocom-bb/src/target/firmware/board/compal/start.rom.S b/Src/osmocom-bb/src/target/firmware/board/compal/start.rom.S
new file mode 100644
index 0000000..211bea8
--- /dev/null
+++ b/Src/osmocom-bb/src/target/firmware/board/compal/start.rom.S
@@ -0,0 +1,32 @@
+
+.section .text.start
+
+#include "macros.S"
+
+.globl _start
+_start:
+ /* clear bss section */
+ clear_bss
+
+ /* copy data to ram */
+ copy_data
+
+ /* copy alway-in-ram code */
+ copy_ramtext
+
+ /* initialize all stacks */
+ init_stacks
+
+ /* call constructors */
+ call_ctors
+
+ /* jump to main */
+ ldr pc, _jump_main
+
+ /* endless loop at end of program */
+_loop:
+ b _loop
+ b _start
+
+_jump_main:
+ .word main