summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board/compal/start.ram.S
blob: c8f242c0c8980811f43276f57c86240533f2789b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.section .text.start

#include "macros.S"
		
.globl _start
_start:
	/* clear bss section */
	clear_bss

	/* 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