aboutsummaryrefslogtreecommitdiff
path: root/asm-v8.s
diff options
context:
space:
mode:
authorGravatar Hugues de Valon <hugues.devalon@arm.com> 2020-01-14 11:38:34 +0000
committerGravatar Hugues de Valon <hugues.devalon@arm.com> 2020-03-02 09:06:34 +0000
commit2bbfd8c976fed21e24865618b0a9975d9ab542c4 (patch)
tree453957fade88692549fbbc40ffb1639ae2036398 /asm-v8.s
parent72befe4c163e59393789d3043afe1e67a7fc0044 (diff)
downloadcortex-m-2bbfd8c976fed21e24865618b0a9975d9ab542c4.tar.gz
cortex-m-2bbfd8c976fed21e24865618b0a9975d9ab542c4.tar.zst
cortex-m-2bbfd8c976fed21e24865618b0a9975d9ab542c4.zip
Initial Rust CMSE support
Armv8-M and Armv8.1-M architecture profiles have an optional Security Extension which provides a set of Security features. This patch adds initial support of the Cortex-M Security Extensions but providing support for the TT intrinsics and helper functions on top of it in the newly added cmse module of this crate. The code is a Rust idiomatic implementation of the C requirements described in this document: https://developer.arm.com/docs/ecm0359818/latest Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
Diffstat (limited to 'asm-v8.s')
-rw-r--r--asm-v8.s27
1 files changed, 27 insertions, 0 deletions
diff --git a/asm-v8.s b/asm-v8.s
new file mode 100644
index 0000000..b667bf0
--- /dev/null
+++ b/asm-v8.s
@@ -0,0 +1,27 @@
+ .section .text.__tt
+ .global __tt
+ .thumb_func
+__tt:
+ tt r0, r0
+ bx lr
+
+ .section .text.__ttt
+ .global __ttt
+ .thumb_func
+__ttt:
+ ttt r0, r0
+ bx lr
+
+ .section .text.__tta
+ .global __tta
+ .thumb_func
+__tta:
+ tta r0, r0
+ bx lr
+
+ .section .text.__ttat
+ .global __ttat
+ .thumb_func
+__ttat:
+ ttat r0, r0
+ bx lr