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:
parent
09f0dc84b8
commit
982e7be1f7
31 changed files with 68 additions and 88 deletions
|
@ -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)) {
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue