Init gpu interrupt queue header
This commit is contained in:
parent
8cbcce773b
commit
30dc65121d
@ -184,6 +184,12 @@ Result gspInit(void)
|
|||||||
gspSharedMem = mappableAlloc(0x1000);
|
gspSharedMem = mappableAlloc(0x1000);
|
||||||
svcMapMemoryBlock(gspSharedMemHandle, (u32)gspSharedMem, MEMPERM_READWRITE, MEMPERM_DONTCARE);
|
svcMapMemoryBlock(gspSharedMemHandle, (u32)gspSharedMem, MEMPERM_READWRITE, MEMPERM_DONTCARE);
|
||||||
|
|
||||||
|
// Initialize interrupt queue header
|
||||||
|
s32* sharedGspCmdBuf = (s32*)((u8*)gspSharedMem + 0x800 + gspThreadId*0x200);
|
||||||
|
do {
|
||||||
|
__ldrex(sharedGspCmdBuf);
|
||||||
|
} while (__strex(sharedGspCmdBuf, 0));
|
||||||
|
|
||||||
// Start event handling thread
|
// Start event handling thread
|
||||||
gspRunEvents = true;
|
gspRunEvents = true;
|
||||||
gspLastEvent = -1;
|
gspLastEvent = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user