diff options
author | Martmists <mail@martmists.com> | 2020-04-26 08:54:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 08:54:18 +0200 |
commit | 08b8520c12dcbd6fa0d19770c512122df2303ed9 (patch) | |
tree | 74960adfb31cddcf30675a6b08e33443c9cbc98f /include/nitro/os_protectionRegion.c | |
parent | bbd690eb994cb95f6b9c2235996278fe586f8de2 (diff) | |
parent | e028229b82c0e20aa9a8c0a88eece2a41f4a0fd4 (diff) |
Merge pull request #24 from red031000/os_lib
few cleanups to os_alloc.c
Diffstat (limited to 'include/nitro/os_protectionRegion.c')
-rw-r--r-- | include/nitro/os_protectionRegion.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/nitro/os_protectionRegion.c b/include/nitro/os_protectionRegion.c new file mode 100644 index 00000000..b70f9056 --- /dev/null +++ b/include/nitro/os_protectionRegion.c @@ -0,0 +1,17 @@ +// +// Created by red031000 on 2020-04-24. +// + +#include "os_protectionRegion.h" + +asm void OS_SetProtectionRegion1(u32 param) +{ + mcr p15, 0x0, r0, c6, c1, 0x0 + bx lr +} + +asm void OS_SetProtectionRegion2(u32 param) +{ + mcr p15, 0x0, r0, c6, c2, 0x0 + bx lr +}
\ No newline at end of file |