aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootstrap.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap.s')
-rw-r--r--src/bootstrap.s35
1 files changed, 4 insertions, 31 deletions
diff --git a/src/bootstrap.s b/src/bootstrap.s
index 5e71da0..fefa602 100644
--- a/src/bootstrap.s
+++ b/src/bootstrap.s
@@ -2,37 +2,10 @@
.thumb
.extern _start
-.extern fault_handler
+.extern _tstack
-.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
+.section .vector_table
+ .word _tstack
.word _start
- .word fault1
- .word fault2
- .word fault3
- .word fault4
- .word fault5
- .skip 4 * 91
+ .skip 4 * 14