aboutsummaryrefslogtreecommitdiff
path: root/asm-v7.s
diff options
context:
space:
mode:
Diffstat (limited to 'asm-v7.s')
-rw-r--r--asm-v7.s27
1 files changed, 27 insertions, 0 deletions
diff --git a/asm-v7.s b/asm-v7.s
new file mode 100644
index 0000000..c4c6dfb
--- /dev/null
+++ b/asm-v7.s
@@ -0,0 +1,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