- Timestamp:
- May 6, 2008 4:32:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r8132 r8631 3581 3581 Bit16u boot_segment, nbsectors, i, error; 3582 3582 Bit8u device; 3583 #ifdef VBOX 3584 Bit8u read_try; 3585 #endif /* VBOX */ 3583 3586 3584 3587 // Find out the first cdrom … … 3599 3602 atacmd[4]=(0x11 & 0x0000ff00) >> 8; 3600 3603 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 */ 3601 3614 if((error = ata_cmd_packet(device, 12, get_SS(), atacmd, 0, 2048L, ATA_DATA_IN, get_SS(), buffer)) != 0) 3602 3615 return 3; 3616 #endif /* !VBOX */ 3603 3617 3604 3618 // Validity checks
Note:
See TracChangeset
for help on using the changeset viewer.