1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-16 03:50:20 +00:00

Preliminary fixes for boot/libultra (#1032)

* Preliminary fixes

* Missed a NULL
This commit is contained in:
Tharo 2021-11-28 12:50:35 +00:00 committed by GitHub
parent 09f0dc84b8
commit 982e7be1f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 68 additions and 88 deletions

View file

@ -5,7 +5,7 @@ OSPiHandle __DriveRomHandle;
OSPiHandle* osDriveRomInit(void) {
register s32 status;
register u32 a;
register s32 prevInt;
register u32 prevInt;
static u32 D_8000AC70 = 1;
__osPiGetAccess();
@ -22,7 +22,7 @@ OSPiHandle* osDriveRomInit(void) {
__DriveRomHandle.speed = 0;
bzero(&__DriveRomHandle.transferInfo, sizeof(__OSTranxInfo));
while (status = HW_REG(PI_STATUS_REG, u32), status & PI_STATUS_ERROR) {
while (status = HW_REG(PI_STATUS_REG, u32), status & (PI_STATUS_BUSY | PI_STATUS_IOBUSY)) {
;
}