summaryrefslogtreecommitdiff
path: root/sim/start.S
blob: ddd08a54c0138435edaf589302cd6981979d8a0e (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
27
28
29
30
31
32
33
34
35
36
37
38
.section .interrupt_vector

__reset:
	b _start

__undefined:
	b undefined

__swi:
	b .

__prefetch_abort:
	b .

__data_abort:
	b data_abort

__irq:
	b .

__fiq:
	b .

.text

.global _start
_start:
	ldr sp, =_stack_end
	bl  reset

.global halt
halt:
exc_default:
	b   .

.weak undefined, data_abort
.set undefined, exc_default
.set data_abort, exc_default