2020-03-17 04:31:30 +00:00
|
|
|
#include <ultra64.h>
|
|
|
|
#include <global.h>
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
void MsgEvent_SendNullTask() {
|
2020-03-20 11:43:51 +00:00
|
|
|
u32 pad[4];
|
|
|
|
OSScTask task;
|
|
|
|
OSMesgQueue queue;
|
|
|
|
OSMesg msg;
|
|
|
|
u32 pad2[1];
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-03-20 11:43:51 +00:00
|
|
|
task.next = NULL;
|
2020-03-20 16:15:39 +00:00
|
|
|
task.flags = OS_SC_RCP_MASK;
|
2020-03-20 11:43:51 +00:00
|
|
|
task.msgQ = &queue;
|
|
|
|
task.msg = NULL;
|
|
|
|
task.framebuffer = NULL;
|
2020-03-20 16:15:39 +00:00
|
|
|
task.list.t.type = M_NULTASK;
|
2020-03-20 11:43:51 +00:00
|
|
|
osCreateMesgQueue(task.msgQ, &msg, 1);
|
|
|
|
osSendMesg(&gSchedContext.cmdQ, &task, OS_MESG_BLOCK);
|
|
|
|
func_800C95F8(&gSchedContext); // osScKickEntryMsg
|
|
|
|
osRecvMesg(&queue, NULL, OS_MESG_BLOCK);
|
|
|
|
}
|