summaryrefslogtreecommitdiff
path: root/src/libultra_boot_O2/osDriveRomInit.c
diff options
context:
space:
mode:
authorEthan Roseman <ethteck@gmail.com>2020-03-24 00:30:09 -0400
committerEthan Roseman <ethteck@gmail.com>2020-03-24 00:30:09 -0400
commitb3f865dc5849ad3fa684cf7ddbe71f7ae64b55fa (patch)
treef62ad3edb310b4792f40821f0c1a2094e20fed39 /src/libultra_boot_O2/osDriveRomInit.c
parent4600faad8b04573c6eeacbd56dd15a427ff0a337 (diff)
parent4eb7f023f348151fb73f4a0850a6f348280d7805 (diff)
Merge branch 'master' into ovl_En_Ru2_new
Diffstat (limited to 'src/libultra_boot_O2/osDriveRomInit.c')
-rw-r--r--src/libultra_boot_O2/osDriveRomInit.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libultra_boot_O2/osDriveRomInit.c b/src/libultra_boot_O2/osDriveRomInit.c
index 2428161e8..4dd49a629 100644
--- a/src/libultra_boot_O2/osDriveRomInit.c
+++ b/src/libultra_boot_O2/osDriveRomInit.c
@@ -3,8 +3,7 @@
OSPiHandle __DriveRomHandle;
-OSPiHandle* osDriveRomInit()
-{
+OSPiHandle* osDriveRomInit() {
register s32 status;
register u32 a;
register s32 prevInt;
@@ -12,8 +11,7 @@ OSPiHandle* osDriveRomInit()
__osPiGetAccess();
- if (!D_8000AC70)
- {
+ if (!D_8000AC70) {
__osPiRelAccess();
return &__DriveRomHandle;
}
@@ -25,8 +23,9 @@ OSPiHandle* osDriveRomInit()
__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_ERROR) {
;
+ }
HW_REG(PI_BSD_DOM1_LAT_REG, u32) = 0xff;
HW_REG(PI_BSD_DOM1_PGS_REG, u32) = 0;