From 8abd9a968f1aaea16239b1de7d627fb54160257f Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 17 Jun 2011 18:21:43 +0200 Subject: Initial Commit --- .../src/target/firmware/board/compal/start.rom.S | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Src/osmocom-bb/src/target/firmware/board/compal/start.rom.S (limited to 'Src/osmocom-bb/src/target/firmware/board/compal/start.rom.S') 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 -- cgit v1.2.3-55-g7522