VirtualBox

Changeset 8631 in vbox for trunk


Ignore:
Timestamp:
May 6, 2008 4:32:39 PM (17 years ago)
Author:
vboxsync
Message:

Make sure cd booting doesn't get upset by the media change guest notification hack in DevATA, which signals the need for attention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/rombios.c

    r8132 r8631  
    35813581  Bit16u boot_segment, nbsectors, i, error;
    35823582  Bit8u  device;
     3583#ifdef VBOX
     3584  Bit8u  read_try;
     3585#endif /* VBOX */
    35833586
    35843587  // Find out the first cdrom
     
    35993602  atacmd[4]=(0x11 & 0x0000ff00) >> 8;
    36003603  atacmd[5]=(0x11 & 0x000000ff);
     3604#ifdef VBOX
     3605  for (read_try = 0; read_try <= 4; read_try++)
     3606  {
     3607    error = ata_cmd_packet(device, 12, get_SS(), atacmd, 0, 2048L, ATA_DATA_IN, get_SS(), buffer);
     3608    if (!error)
     3609      break;
     3610  }
     3611  if (error)
     3612    return 3;
     3613#else /* !VBOX */
    36013614  if((error = ata_cmd_packet(device, 12, get_SS(), atacmd, 0, 2048L, ATA_DATA_IN, get_SS(), buffer)) != 0)
    36023615    return 3;
     3616#endif /* !VBOX */
    36033617
    36043618  // Validity checks
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette