diff options
author | 2019-08-11 12:55:39 +0530 | |
---|---|---|
committer | 2019-08-11 13:56:57 +0530 | |
commit | 57d44f6648bba3eb2746e64fbf28cbac4012a19c (patch) | |
tree | f0d73be863fb34681c05707d0bf8baf1c0a6ebc9 /asm-v8-main.s | |
parent | 1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e (diff) | |
download | cortex-m-57d44f6648bba3eb2746e64fbf28cbac4012a19c.tar.gz cortex-m-57d44f6648bba3eb2746e64fbf28cbac4012a19c.tar.zst cortex-m-57d44f6648bba3eb2746e64fbf28cbac4012a19c.zip |
Add {M,P}SPLIM access routines found on ARMv8-M
Signed-off-by: Aurabindo Jayamohanan <mail@aurabindo.in>
Diffstat (limited to 'asm-v8-main.s')
-rw-r--r-- | asm-v8-main.s | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/asm-v8-main.s b/asm-v8-main.s new file mode 100644 index 0000000..a59845c --- /dev/null +++ b/asm-v8-main.s @@ -0,0 +1,28 @@ + .section .text.__msplim_r + .global __msplim_r + .thumb_func +__msplim_r: + mrs r0, MSPLIM + bx lr + + .section .text.__msplim_w + .global __msplim_w + .thumb_func +__msplim_w: + msr MSPLIM, r0 + bx lr + + .section .text.__psplim_r + .global __psplim_r + .thumb_func +__psplim_r: + mrs r0, PSPLIM + bx lr + + .section .text.__psplim_w + .global __psplim_w + .thumb_func +__psplim_w: + msr PSPLIM, r0 + bx lr + |