diff options
| author | fig02 <fig02srl@gmail.com> | 2020-03-22 19:17:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-22 19:17:31 -0400 |
| commit | d85168f0b088c8e5f661725f45946ca10cc82956 (patch) | |
| tree | 458fc503a1d5b3003cb50a9bece9a1c2a0b4e700 /src/libultra_boot_O2/osDriveRomInit.c | |
| parent | b372169893f1e66654b03d9d39b44a59893da8ec (diff) | |
| parent | 51290f612635a87d879b6332400ad526c479441e (diff) | |
Merge pull request #10 from Roman971/setup-formatter
Setup formatter script and format files in src/ and include/
Diffstat (limited to 'src/libultra_boot_O2/osDriveRomInit.c')
| -rw-r--r-- | src/libultra_boot_O2/osDriveRomInit.c | 9 |
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; |
