summaryrefslogtreecommitdiff
path: root/arm9/lib/src/OS_terminate_proc.c
diff options
context:
space:
mode:
authorCleverking2003 <30466983+Cleverking2003@users.noreply.github.com>2020-07-27 17:21:41 +0300
committerGitHub <noreply@github.com>2020-07-27 17:21:41 +0300
commit8e1946da03f96b5696d3f8f248a2b675ba80d594 (patch)
tree70d3aa714ecc4e221b11437672b3da8f36049d7e /arm9/lib/src/OS_terminate_proc.c
parent4f8385ac24e8904662af24bbc0d81317c8ff1ea6 (diff)
parent777da6f2ee89661596d6e7c129e6d025c6f2841c (diff)
Merge pull request #244 from red031000/master
split arm7 NVRAM and some RTC
Diffstat (limited to 'arm9/lib/src/OS_terminate_proc.c')
-rw-r--r--arm9/lib/src/OS_terminate_proc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arm9/lib/src/OS_terminate_proc.c b/arm9/lib/src/OS_terminate_proc.c
index 2e5f3fb2..fdc4dbff 100644
--- a/arm9/lib/src/OS_terminate_proc.c
+++ b/arm9/lib/src/OS_terminate_proc.c
@@ -2,14 +2,17 @@
#include "function_target.h"
#include "OS_system.h"
-ARM_FUNC void OS_Terminate(void) {
- while (TRUE) {
+ARM_FUNC void OS_Terminate(void)
+{
+ while (TRUE)
+ {
(void)OS_DisableInterrupts();
OS_Halt();
}
}
-ARM_FUNC asm void OS_Halt(void) {
+ARM_FUNC asm void OS_Halt(void)
+{
mov r0, #0x0
mcr p15, 0x0, r0, c7, c0, 0x4 //Wait For Interrupt (Halt)
bx lr