Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit a82e1de

Browse files
committed
Support user threading in hard fault handler
1 parent 457a2e1 commit a82e1de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

asm.s

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
.global HardFault
22
.thumb_func
33
HardFault:
4-
mrs r0, MSP
4+
tst lr, #4
5+
6+
ite EQ
7+
mrseq r0, MSP
8+
mrsne r0, PSP
9+
510
bl UserHardFault

0 commit comments

Comments
 (0)