mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Possible crash fix for osPiStartDma()
This commit is contained in:
parent
6f7b7e65ca
commit
2d01367cf6
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ u64 osClockRate = 62500000;
|
|||
s32 osPiStartDma(UNUSED OSIoMesg *mb, UNUSED s32 priority, UNUSED s32 direction,
|
||||
uintptr_t devAddr, void *vAddr, size_t nbytes,
|
||||
UNUSED OSMesgQueue *mq) {
|
||||
if (!vAddr || !devAddr) { return 0; }
|
||||
memcpy(vAddr, (const void *) devAddr, nbytes);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue