Changeset 87120 in vbox
- Timestamp:
- Dec 24, 2020 10:17:49 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r87048 r87120 1669 1669 { 1670 1670 /* CHS */ 1671 AssertMsgReturnVoid(s->PCHSGeometry.cHeads && s->PCHSGeometry.cSectors, ("Device geometry not set!\n")); 1671 1672 cyl = iLBA / (s->PCHSGeometry.cHeads * s->PCHSGeometry.cSectors); 1672 1673 r = iLBA % (s->PCHSGeometry.cHeads * s->PCHSGeometry.cSectors); … … 4428 4429 break; 4429 4430 case ATA_READ_NATIVE_MAX_ADDRESS_EXT: 4431 if (!pDevR3->pDrvMedia || s->fATAPI) 4432 goto abort_cmd; 4430 4433 s->fLBA48 = true; 4431 4434 ataR3SetSector(s, s->cTotalSectors - 1); … … 4438 4441 break; 4439 4442 case ATA_READ_NATIVE_MAX_ADDRESS: 4443 if (!pDevR3->pDrvMedia || s->fATAPI) 4444 goto abort_cmd; 4440 4445 ataR3SetSector(s, RT_MIN(s->cTotalSectors, 1 << 28) - 1); 4441 4446 ataR3CmdOK(pCtl, s, 0);
Note:
See TracChangeset
for help on using the changeset viewer.