Changeset 1795 in vbox
- Timestamp:
- Mar 29, 2007 12:30:45 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19974
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r1735 r1795 5243 5243 PDMBIOSTRANSLATION enmTranslation; 5244 5244 rc = pIf->pDrvBlockBios->pfnGetTranslation(pIf->pDrvBlockBios, &enmTranslation); 5245 if (rc == VERR_PDM_TRANSLATION_NOT_SET) 5246 { 5247 enmTranslation = PDMBIOSTRANSLATION_AUTO; 5248 pIf->cCHSCylinders = 0; 5249 rc = VINF_SUCCESS; 5250 } 5245 5251 AssertRC(rc); 5246 5252 … … 5259 5265 * disk must report proper PCHS values for disks bigger 5260 5266 * than approximately 512MB. */ 5261 if (pIf->cCHSSectors == 63 && pIf->cCHSCylinders >= 1024)5267 if (pIf->cCHSSectors == 63 && (pIf->cCHSHeads != 16 || pIf->cCHSCylinders >= 1024)) 5262 5268 { 5263 5269 pIf->cCHSCylinders = pIf->cTotalSectors / 63 / 16; -
trunk/src/VBox/Devices/Storage/DrvHostRawDisk.cpp
r1784 r1795 401 401 if (pThis->cCylinders != 0) 402 402 { 403 if (pThis->cSectors == 63 && pThis->cCylinders >= 1024)403 if (pThis->cSectors == 63 && (pThis->cHeads != 16 || pThis->cCylinders >= 1024)) 404 404 { 405 405 /* For big disks, use dummy PCHS values and let the BIOS
Note:
See TracChangeset
for help on using the changeset viewer.