aboutsummaryrefslogtreecommitdiff
path: root/playground/src/init_low.s
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-01-04 23:53:44 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2016-01-04 23:53:44 +0100
commitec96951943921b57ef9c1e9dacb63e34716fe5b7 (patch)
treec85d1c0a063712459ad12144900eb522b39ef7a0 /playground/src/init_low.s
parentbaedda497d16c5096971eee83a0c467fe663fe6d (diff)
downloadstm32f103-playground-ec96951943921b57ef9c1e9dacb63e34716fe5b7.tar.gz
stm32f103-playground-ec96951943921b57ef9c1e9dacb63e34716fe5b7.tar.bz2
stm32f103-playground-ec96951943921b57ef9c1e9dacb63e34716fe5b7.tar.xz
stm32f103-playground-ec96951943921b57ef9c1e9dacb63e34716fe5b7.zip
o Actually working implementation of context switching.
It is important to remember to update the stack to the task descriptor on every switch!
Diffstat (limited to 'playground/src/init_low.s')
-rw-r--r--playground/src/init_low.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/playground/src/init_low.s b/playground/src/init_low.s
index bc12b5b..b666ed4 100644
--- a/playground/src/init_low.s
+++ b/playground/src/init_low.s
@@ -16,10 +16,12 @@ halt:
b .
.thumb_func
+.global NMI_Handler
NMI_Handler:
b halt
.thumb_func
+.global HardFault_Handler
HardFault_Handler:
tst lr, #4
ite eq
@@ -28,14 +30,17 @@ HardFault_Handler:
b HardFault_Handler_C
.thumb_func
+.global MemManage_Handler
MemManage_Handler:
b halt
.thumb_func
+.global BusFault_Handler
BusFault_Handler:
b halt
.thumb_func
+.global UsageFault_Handler
UsageFault_Handler:
b halt