summaryrefslogtreecommitdiff
path: root/arm9/asm/OS_terminate_proc.s
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/asm/OS_terminate_proc.s')
-rw-r--r--arm9/asm/OS_terminate_proc.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/arm9/asm/OS_terminate_proc.s b/arm9/asm/OS_terminate_proc.s
new file mode 100644
index 00000000..30940914
--- /dev/null
+++ b/arm9/asm/OS_terminate_proc.s
@@ -0,0 +1,19 @@
+ .include "asm/macros.inc"
+ .include "global.inc"
+
+ .text
+
+ arm_func_start OS_Halt
+OS_Halt: ; 0x020CD844
+ mov r0, #0x0
+ mcr p15, 0x0, r0, c7, c0, 0x4
+ bx lr
+
+ arm_func_start OS_Terminate
+OS_Terminate: ; 0x020CD850
+ stmdb sp!, {lr}
+ sub sp, sp, #0x4
+_020CD858:
+ bl OS_DisableInterrupts
+ bl OS_Halt
+ b _020CD858