Changeset 3932 in vbox
- Timestamp:
- Jul 31, 2007 8:13:24 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23338
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r3930 r3932 303 303 if (VBOX_SUCCESS(rc)) 304 304 { 305 PDMBIOSTRANSLATION enmTranslation;306 rc = pBlockBios->pfnGetTranslation(pBlockBios, &enmTranslation);307 if ( VBOX_SUCCESS(rc) && enmTranslation == PDMBIOSTRANSLATION_LBA308 && cCylinders >= 1024 && cSectors == 63 && (cHeads == 16 || cHeads == 32 || cHeads == 64 || cHeads == 128 || cHeads == 255))309 {310 uint32_t cTotalSectors = cCylinders * cHeads * cSectors;311 cHeads = 16;312 cCylinders = cTotalSectors / 16 / 63;313 }314 305 Log2(("pcbiosCmosInitHardDisk: offInfo=%#x: CHS=%d/%d/%d\n", offInfo, cCylinders, cHeads, cSectors)); 315 306 pcbiosCmosWrite(pDevIns, offType, 47); /* 19h - First Extended Hard Disk Drive Type */
Note:
See TracChangeset
for help on using the changeset viewer.