diff --git a/include/common.h b/include/common.h index 361a0fc..bfee182 100644 --- a/include/common.h +++ b/include/common.h @@ -137,8 +137,6 @@ extern OSMesgQueue MQ_800BE030; extern OSMesg OSMESG_800BE048[0x32]; extern OSThread THREAD_CONTROLLER; -extern OSMesg D_800BBE60[8]; - extern OSMesgQueue MQ_800E7988; extern OSThread THREAD_CONTROLLER; diff --git a/include/nu/nusys.h b/include/nu/nusys.h index 83a04b1..cb55de5 100644 --- a/include/nu/nusys.h +++ b/include/nu/nusys.h @@ -720,6 +720,7 @@ extern NUCallBackList nuVrsCallBack; /* si variables */ /*--------------------------------------*/ extern OSMesgQueue nuSiMesgQ; /* SI event message queue */ +extern OSMesg nuSiMesgBuf[NU_SC_MAX_MESGS]; extern OSMesgQueue nuSiMgrMesgQ; /* SI Manager queue */ extern NUCallBackList* nuSiCallBackList;/* Callback function list */ diff --git a/linker_scripts/symbols/addr.txt b/linker_scripts/symbols/addr.txt index edf99eb..efee53b 100644 --- a/linker_scripts/symbols/addr.txt +++ b/linker_scripts/symbols/addr.txt @@ -24,6 +24,7 @@ gFrameBuf2 = 0x803DA800; rdpstateinit_dl = 0x800A9EF0; // rom:0x3A2F0 nuGfxDisplay = 0x800C4BD8; nuSiMesgQ = 0x800E9B88; +nuSiMesgBuf = 0x800BBE60; nuBoot = 0x8007F880; nuScCreateScheduler = 0x80088C50; // rom:0x19050 diff --git a/src/_ob_icy_coast.c b/src/_ob_icy_coast.c index e6e7193..a88d440 100644 --- a/src/_ob_icy_coast.c +++ b/src/_ob_icy_coast.c @@ -7,7 +7,7 @@ u8 nuSiMgrInit(void) { u8 pattern; OSContStatus status[NU_CONT_MAXCONTROLLERS]; - osCreateMesgQueue(&nuSiMesgQ, D_800BBE60, 8); + osCreateMesgQueue(&nuSiMesgQ, nuSiMesgBuf, NU_SC_MAX_MESGS); osSetEventMesg(OS_EVENT_SI, &nuSiMesgQ, NULL); osContInit(&nuSiMesgQ, &pattern, status);