blob: 5e71da0cbba6b3d515e63c3bb2b46d10e648db98 (
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
|
.cpu cortex-m4
.thumb
.extern _start
.extern fault_handler
.section .text
fault1:
mov r0, 1
b fault_handler
fault2:
mov r0, 2
b fault_handler
fault3:
mov r0, 3
b fault_handler
fault4:
mov r0, 4
b fault_handler
fault5:
mov r0, 5
b fault_handler
.section .bss
.skip 2048
stack_top:
.section .isr_vector
.word stack_top
.word _start
.word fault1
.word fault2
.word fault3
.word fault4
.word fault5
.skip 4 * 91
|