summaryrefslogtreecommitdiff
path: root/src/boot_O2_g3/boot_main.c
blob: 81daac81ccb2b0e8741c84f4eba815b8c5439c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <ultra64.h>
#include <global.h>

void bootproc(void) {
    StackCheck_Init(&sBootThreadInfo, sBootThreadStack, &sBootThreadStack[1024], 0, -1, "boot");
    osMemSize = osGetMemSize();
    func_800818F4();
    osInitialize();
    osUnmapTLBAll();
    gCartHandle = osCartRomInit();
    StackCheck_Init(&sIdleThreadInfo, sIdleThreadStack, &sIdleThreadStack[1024], 0, 256, "idle");
    osCreateThread(&sIdleThread, 1, (osCreateThread_func)Idle_ThreadEntry, 0, &sIdleThreadStack[1024], 12);
    osStartThread(&sIdleThread);
}