aboutsummaryrefslogtreecommitdiff
path: root/asm.s
diff options
context:
space:
mode:
authorGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-08-26 23:57:12 +0000
committerGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-08-26 23:57:12 +0000
commit478418c0eb38b9311e574d18d12cac69d3044e63 (patch)
tree0c3eed1a715253acf3378da4c731781fb72bd0e3 /asm.s
parentdfd0349772763e07b16bcaa13f536bfa381044b8 (diff)
parent945e2683f89a031b44b65d25e1917f3157c49fa1 (diff)
downloadcortex-m-478418c0eb38b9311e574d18d12cac69d3044e63.tar.gz
cortex-m-478418c0eb38b9311e574d18d12cac69d3044e63.tar.zst
cortex-m-478418c0eb38b9311e574d18d12cac69d3044e63.zip
Merge #108
108: remove build dependency on arm-none-eabi-gcc r=adamgreig a=japaric by shipping pre-assembled object files. This is the same approach as the one used in rust-embedded/cortex-m#95 r? @rust-embedded/cortex-m (anyone) Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Diffstat (limited to 'asm.s')
-rw-r--r--asm.s120
1 files changed, 120 insertions, 0 deletions
diff --git a/asm.s b/asm.s
new file mode 100644
index 0000000..bf2fd46
--- /dev/null
+++ b/asm.s
@@ -0,0 +1,120 @@
+ .section .text.__bkpt
+ .global __bkpt
+ .thumb_func
+__bkpt:
+ bkpt
+ bx lr
+
+ .section .text.__control
+ .global __control
+ .thumb_func
+__control:
+ mrs r0, CONTROL
+ bx lr
+
+ .section .text.__cpsid
+ .global __cpsid
+ .thumb_func
+__cpsid:
+ cpsid i
+ bx lr
+
+ .section .text.__cpsie
+ .global __cpsie
+ .thumb_func
+__cpsie:
+ cpsie i
+ bx lr
+
+ .section .text.__delay
+ .global __delay
+ .syntax unified
+ .thumb_func
+__delay:
+ nop
+ subs r0, #1
+ bne __delay
+ bx lr
+
+ .section .text.__dmb
+ .global __dmb
+ .thumb_func
+__dmb:
+ dmb 0xF
+ bx lr
+
+ .section .text.__dsb
+ .global __dsb
+ .thumb_func
+__dsb:
+ dsb 0xF
+ bx lr
+
+ .section .text.__isb
+ .global __isb
+ .thumb_func
+__isb:
+ isb 0xF
+ bx lr
+
+ .section .text.__msp_r
+ .global __msp_r
+ .thumb_func
+__msp_r:
+ mrs r0, MSP
+ bx lr
+
+ .section .text.__msp_w
+ .global __msp_w
+ .thumb_func
+__msp_w:
+ msr MSP, r0
+ bx lr
+
+ .section .text.__nop
+ .global __nop
+ .thumb_func
+__nop:
+ bx lr
+
+ .section .text.__primask
+ .global __primask
+ .thumb_func
+__primask:
+ mrs r0, PRIMASK
+ bx lr
+
+ .section .text.__psp_r
+ .global __psp_r
+ .thumb_func
+__psp_r:
+ mrs r0, PSP
+ bx lr
+
+ .section .text.__psp_w
+ .global __psp_w
+ .thumb_func
+__psp_w:
+ msr PSP, r0
+ bx lr
+
+ .section .text.__sev
+ .global __sev
+ .thumb_func
+__sev:
+ sev
+ bx lr
+
+ .section .text.__wfe
+ .global __wfe
+ .thumb_func
+__wfe:
+ wfe
+ bx lr
+
+ .section .text.__wfi
+ .global __wfi
+ .thumb_func
+__wfi:
+ wfi
+ bx lr