mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-28 08:24:55 -04:00
fcc5cf828d
* libu64 * libu64 -O2 * Add libu64.md
25 lines
746 B
C
25 lines
746 B
C
#include "carthandle.h"
|
|
#include "CIC6105.h"
|
|
#include "idle.h"
|
|
#include "stack.h"
|
|
#include "libu64/stackcheck.h"
|
|
#include "z64thread.h"
|
|
|
|
StackEntry sBootStackInfo;
|
|
OSThread sIdleThread;
|
|
STACK(sIdleStack, 0x400);
|
|
StackEntry sIdleStackInfo;
|
|
STACK(sBootStack, 0x400);
|
|
|
|
void bootproc(void) {
|
|
StackCheck_Init(&sBootStackInfo, sBootStack, STACK_TOP(sBootStack), 0, -1, "boot");
|
|
osMemSize = osGetMemSize();
|
|
CIC6105_Init();
|
|
osInitialize();
|
|
osUnmapTLBAll();
|
|
gCartHandle = osCartRomInit();
|
|
StackCheck_Init(&sIdleStackInfo, sIdleStack, STACK_TOP(sIdleStack), 0, 0x100, "idle");
|
|
osCreateThread(&sIdleThread, Z_THREAD_ID_IDLE, Idle_ThreadEntry, NULL, STACK_TOP(sIdleStack), Z_PRIORITY_IDLE);
|
|
osStartThread(&sIdleThread);
|
|
}
|