aboutsummaryrefslogtreecommitdiff
path: root/asm-v7.s
blob: c4c6dfb531a684178050374361824d9f5e66e060 (plain) (blame)
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
  .section .text.__basepri_max
  .global __basepri_max
  .thumb_func
__basepri_max:
  msr BASEPRI_MAX, r0
  bx lr

  .section .text.__basepri_r
  .global __basepri_r
  .thumb_func
__basepri_r:
  mrs r0, BASEPRI
  bx lr

  .section .text.__basepri_w
  .global __basepri_w
  .thumb_func
__basepri_w:
  msr BASEPRI, r0
  bx lr

  .section .text.__faultmask
  .global __faultmask
  .thumb_func
__faultmask:
  mrs r0, FAULTMASK
  bx lr