aboutsummaryrefslogtreecommitdiff
path: root/asm.s
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2020-03-15 19:40:37 +0000
committerGravatar Adam Greig <adam@adamgreig.com> 2020-03-15 19:40:47 +0000
commit539c6d00fffabaf7c3f61f2f8c1aaefa661fa500 (patch)
treea54c12251a7e7cbdafe6b2ee8909ab5acf63b492 /asm.s
parent1cb6baf8bd46b602c01d51e7a3c5c6e77af9c8f2 (diff)
downloadcortex-m-539c6d00fffabaf7c3f61f2f8c1aaefa661fa500.tar.gz
cortex-m-539c6d00fffabaf7c3f61f2f8c1aaefa661fa500.tar.zst
cortex-m-539c6d00fffabaf7c3f61f2f8c1aaefa661fa500.zip
Add UDF instruction. Closes #199.
Diffstat (limited to 'asm.s')
-rw-r--r--asm.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/asm.s b/asm.s
index fd2c7fa..975e1ce 100644
--- a/asm.s
+++ b/asm.s
@@ -114,6 +114,14 @@ __sev:
sev
bx lr
+
+ .section .text.__udf
+ .global __udf
+ .thumb_func
+__udf:
+ udf
+ bx lr
+
.section .text.__wfe
.global __wfe
.thumb_func