Rename `OSMESG_800BE1A0` to `nuGfxMesgBuf`

This commit is contained in:
gijs 2023-10-20 16:37:04 +02:00
parent 7b0cc70821
commit 7df2c30851
4 changed files with 3 additions and 4 deletions

View File

@ -170,7 +170,6 @@ extern void (*SWAP_BUFFER_FUNC_800A9E8C)(void** buffers);
extern void (*D_800AA090)(s32); extern void (*D_800AA090)(s32);
extern void (*D_800AA094)(); extern void (*D_800AA094)();
extern s32 D_800E79A4; extern s32 D_800E79A4;
extern OSMesg OSMESG_800BE1A0[8];
extern u8 SP_THREAD_800BE1C0[1]; extern u8 SP_THREAD_800BE1C0[1];
extern OSThread THREAD_800BE1C0; extern OSThread THREAD_800BE1C0;
extern void* D_800AA41C; extern void* D_800AA41C;

View File

@ -663,6 +663,7 @@ extern u8 nuDramStack[];
extern u8 nuYieldBuf[]; extern u8 nuYieldBuf[];
extern NUSched nusched; /* Scheduler structure */ extern NUSched nusched; /* Scheduler structure */
extern OSMesgQueue nuGfxMesgQ; /* Graphics thread queue */ extern OSMesgQueue nuGfxMesgQ; /* Graphics thread queue */
extern OSMesg nuGfxMesgBuf[NU_GFX_MESGS];
extern u32 nuScRetraceCounter; /* Retrace counter */ extern u32 nuScRetraceCounter; /* Retrace counter */
extern u8 nuScPreNMIFlag; extern u8 nuScPreNMIFlag;
/*--------------------------------------*/ /*--------------------------------------*/
@ -676,7 +677,6 @@ extern u16* nuGfxZBuffer; /* Pointer to the Z buffer */
extern volatile u32 nuGfxTaskSpool; /* Number of tasks in queue */ extern volatile u32 nuGfxTaskSpool; /* Number of tasks in queue */
extern u32 nuGfxDisplay; /* Display on/off flag */ extern u32 nuGfxDisplay; /* Display on/off flag */
extern u32 nuGfxCfbCounter; /* For frame buffer swapping */ extern u32 nuGfxCfbCounter; /* For frame buffer swapping */
//extern OSMesgQueue nuGfxMesgQ;
extern OSThread nuGfxThread; /* graphic thread */ extern OSThread nuGfxThread; /* graphic thread */
/*--------------------------------------*/ /*--------------------------------------*/

View File

@ -7,6 +7,7 @@ nuGfxCfbNum = 0x800A9E80;
nuGfxCfbCounter = 0x800C4BC4; nuGfxCfbCounter = 0x800C4BC4;
nuGfxCfb_ptr = 0x800E8210; nuGfxCfb_ptr = 0x800E8210;
nuGfxMesgQ = 0x800C4C28; nuGfxMesgQ = 0x800C4C28;
nuGfxMesgBuf = 0x800BE1A0;
nuBoot = 0x8007F880; nuBoot = 0x8007F880;
nuScCreateScheduler = 0x80088C50; // rom:0x19050 nuScCreateScheduler = 0x80088C50; // rom:0x19050
@ -893,7 +894,6 @@ MQ_800BE030 = 0x800BE030;
OSMESG_800BE190 = 0x800BE190; OSMESG_800BE190 = 0x800BE190;
OSMESG_800BE194 = 0x800BE194; OSMESG_800BE194 = 0x800BE194;
OSMESG_800BE1A0 = 0x800BE1A0;
OSMESG_800B1870 = 0x800B1870; OSMESG_800B1870 = 0x800B1870;
OSMESG_800B17D0 = 0x800B17D0; OSMESG_800B17D0 = 0x800B17D0;
OSMESG_800B17E0 = 0x800B17E0; OSMESG_800B17E0 = 0x800B17E0;

View File

@ -8,7 +8,7 @@ void gfxThread(void* arg0) {
NUScMsg* mesgType; NUScMsg* mesgType;
s16 temp_v0; s16 temp_v0;
osCreateMesgQueue(&nuGfxMesgQ, OSMESG_800BE1A0, NU_GFX_MESGS); osCreateMesgQueue(&nuGfxMesgQ, nuGfxMesgBuf, NU_GFX_MESGS);
nuScAddClient(&gfxClient, &nuGfxMesgQ, NU_SC_RETRACE_MSG | NU_SC_PRENMI_MSG); nuScAddClient(&gfxClient, &nuGfxMesgQ, NU_SC_RETRACE_MSG | NU_SC_PRENMI_MSG);
while(1) { while(1) {