Skip to content

Commit 61e16a2

Browse files
committed
[FREELDR:PC98] Refactor PC-98 disk access routines
- Fix incorrect IDE controller ownership leading to strange and inconsistent behavior during boot - Fix a mismatch between the type and flags of the drive - Remove obsolete definitions - Use SAL2 annotations CORE-17977
1 parent abc2acf commit 61e16a2

3 files changed

Lines changed: 250 additions & 327 deletions

File tree

boot/freeldr/freeldr/arch/i386/pc98/machpc98.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Pc98GetBootSectorLoadAddress(IN UCHAR DriveNumber)
5757
/* 1.44 MB floppy */
5858
return 0x1FE00;
5959
}
60-
else if (DiskDrive->Type & DRIVE_FDD)
60+
else if (DiskDrive->Type == DRIVE_TYPE_FDD)
6161
{
6262
return 0x1FC00;
6363
}

0 commit comments

Comments
 (0)