epiread.c OK (#410)

* epiread.c OK

* uintptr_t
This commit is contained in:
EllipticEllipsis 2021-11-11 22:27:49 +00:00 committed by GitHub
parent 40ec8a9fc0
commit 9aef02bc32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#include "global.h" #include "global.h"
s32 __osEPiRawReadIo(OSPiHandle* handle, u32 devAddr, u32* data) { s32 __osEPiRawReadIo(OSPiHandle* handle, uintptr_t devAddr, u32* data) {
s32 status; s32 status;
OSPiHandle* curHandle; OSPiHandle* curHandle;

View File

@ -1,3 +1,11 @@
#include "global.h" #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;
}