This allows older versions of ELTORITO.SYS (such as the version found
on the FreeDOS installation CD-ROM) to use iPXE's emulated CD-ROM
drive.
Reported-by: Robin Smidsrød <robin@smidsrod.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
bios_drive, int13->drive );
ix86->regs.dl = int13->drive;
return;
+ } else if ( ( ( bios_drive & 0x7f ) == 0x7f ) &&
+ ( command == INT13_CDROM_STATUS_TERMINATE )
+ && int13->is_cdrom ) {
+ /* Catch non-drive-specific CD-ROM calls */
+ } else {
+ continue;
}
- continue;
}
DBGC2 ( int13, "INT13,%02x (%02x): ",
- ix86->regs.ah, int13->drive );
+ ix86->regs.ah, bios_drive );
switch ( command ) {
case INT13_RESET: