mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
change OSMesg definition and fix memory corruptions
This commit is contained in:
parent
72fcd19a9e
commit
b5d5930fed
20 changed files with 143 additions and 127 deletions
|
@ -87,7 +87,7 @@ void Main(void* arg) {
|
|||
R_ENABLE_ARENA_DBG = 0;
|
||||
|
||||
osCreateMesgQueue(&sSiIntMsgQ, sSiIntMsgBuf, 1);
|
||||
osSetEventMesg(5, &sSiIntMsgQ, 0);
|
||||
osSetEventMesg(5, &sSiIntMsgQ, OS_MESG_PTR(NULL));
|
||||
|
||||
Main_LogSystemHeap();
|
||||
|
||||
|
@ -118,7 +118,7 @@ void Main(void* arg) {
|
|||
|
||||
while (true) {
|
||||
msg = NULL;
|
||||
osRecvMesg(&irqMgrMsgQ, (OSMesg)&msg, OS_MESG_BLOCK);
|
||||
osRecvMesg(&irqMgrMsgQ, (OSMesg*)&msg, OS_MESG_BLOCK);
|
||||
if (msg == NULL) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue