summaryrefslogtreecommitdiff
path: root/src/boot_O2_g3
diff options
context:
space:
mode:
authorrozlette <uberpanzermensch@gmail.com>2020-01-12 20:18:31 -0600
committerrozlette <uberpanzermensch@gmail.com>2020-01-12 20:18:31 -0600
commit30daa16255114a3d37c2197288a7194b360625d8 (patch)
tree7059608b49f7f3755415228dbc430711d806a878 /src/boot_O2_g3
parent76c3d660a97526809b58ecc635ad46ef6bdaeefa (diff)
Port stackcheck.c from oot decomp
Diffstat (limited to 'src/boot_O2_g3')
-rw-r--r--src/boot_O2_g3/boot_0x80080060.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/boot_O2_g3/boot_0x80080060.c b/src/boot_O2_g3/boot_0x80080060.c
index 5fa6daa6d..d73ada89f 100644
--- a/src/boot_O2_g3/boot_0x80080060.c
+++ b/src/boot_O2_g3/boot_0x80080060.c
@@ -1,14 +1,14 @@
#include <ultra64.h>
#include <global.h>
-UNK_RET start(void) {
- thread_info_init(&bootThreadInfo, bootStack, &bootStack[1024], 0, -1, bootThreadName);
+void start(void) {
+ StackCheck_Init(&bootStackEntry, (u32)bootStack, (u32)&bootStack[1024], 0, -1, bootThreadName);
osMemSize = func_8008D350();
func_800818F4();
osInitialize();
osUnmapTLBAll();
D_80096B40 = func_80092920();
- thread_info_init(&idleTreadInfo, idleStack, &idleStack[1024], 0, 256, idleThreadName);
- osCreateThread(&idleOSThread, 1, (osCreateThread_func)Idle_ThreadEntry, 0, &idleTreadInfo, 12);
+ StackCheck_Init(&idleStackEntry, (u32)idleStack, (u32)&idleStack[1024], 0, 256, idleThreadName);
+ osCreateThread(&idleOSThread, 1, (osCreateThread_func)Idle_ThreadEntry, 0, &idleStack[1024], 12);
osStartThread(&idleOSThread);
}