aboutsummaryrefslogtreecommitdiff
path: root/asm-cm7-r0p1.s
blob: a9ebf4a02a7b2a532b0b68e3a85773044171f6ce (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_cm7_r0p1
  .global __basepri_max_cm7_r0p1
  .syntax unified
  .thumb_func
__basepri_max_cm7_r0p1:
  mrs r1, PRIMASK
  cpsid i
  tst.w r1, #1
  msr BASEPRI_MAX, r0
  it ne
  bxne lr
  cpsie i
  bx lr

  .section .text.__basepri_w_cm7_r0p1
  .global __basepri_w_cm7_r0p1
  .syntax unified
  .thumb_func
__basepri_w_cm7_r0p1:
  mrs r1, PRIMASK
  cpsid i
  tst.w r1, #1
  msr BASEPRI, r0
  it ne
  bxne lr
  cpsie i
  bx lr