mirror of https://github.com/zeldaret/mm.git
parent
40ec8a9fc0
commit
9aef02bc32
|
@ -1,6 +1,6 @@
|
|||
#include "global.h"
|
||||
|
||||
s32 __osEPiRawReadIo(OSPiHandle* handle, u32 devAddr, u32* data) {
|
||||
s32 __osEPiRawReadIo(OSPiHandle* handle, uintptr_t devAddr, u32* data) {
|
||||
s32 status;
|
||||
OSPiHandle* curHandle;
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
#include "global.h"
|
||||
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/boot/epiread/osEPiReadIo.s")
|
||||
s32 osEPiReadIo(OSPiHandle* handle, uintptr_t devAddr, u32* data) {
|
||||
register s32 ret;
|
||||
|
||||
__osPiGetAccess();
|
||||
ret = __osEPiRawReadIo(handle, devAddr, data);
|
||||
__osPiRelAccess();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue