aboutsummaryrefslogtreecommitdiff
path: root/asm.s
diff options
context:
space:
mode:
Diffstat (limited to 'asm.s')
-rw-r--r--asm.s14
1 files changed, 11 insertions, 3 deletions
diff --git a/asm.s b/asm.s
index 1ad6fed..fd2c7fa 100644
--- a/asm.s
+++ b/asm.s
@@ -5,13 +5,21 @@ __bkpt:
bkpt
bx lr
- .section .text.__control
- .global __control
+ .section .text.__control_r
+ .global __control_r
.thumb_func
-__control:
+__control_r:
mrs r0, CONTROL
bx lr
+ .section .text.__control_w
+ .global __control_w
+ .thumb_func
+__control_w:
+ msr CONTROL, r0
+ bx lr
+
+
.section .text.__cpsid
.global __cpsid
.thumb_func