aboutsummaryrefslogtreecommitdiffstats
path: root/src/fsm/hardfault.s
blob: 8570dcc3d0e9f10327729e1362843727dee83341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
.syntax unified
.cpu cortex-m3
.thumb

.global HardFault_Handler
.extern hard_fault_handler_c

HardFault_Handler:
  tst lr, #4
  ite eq
  mrseq r0, msp
  mrsne r0, psp
  b hard_fault_handler_c