Changeset 81997 in vbox
- Timestamp:
- Nov 19, 2019 3:57:09 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134797
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r81870 r81997 1847 1847 if (RT_SUCCESS(rc)) 1848 1848 { 1849 ataR3SetSector(s, iLBA + cSectors); 1849 /* When READ SECTORS etc. finishes, the address in the task 1850 * file register points at the last sector read, not at the next 1851 * sector that would be read. This ensures the registers always 1852 * contain a valid sector address. 1853 */ 1850 1854 if (s->cbElementaryTransfer == s->cbTotalTransfer) 1855 { 1851 1856 s->iSourceSink = ATAFN_SS_NULL; 1857 ataR3SetSector(s, iLBA + cSectors - 1); 1858 } 1859 else 1860 ataR3SetSector(s, iLBA + cSectors); 1861 s->uATARegNSector -= cSectors; 1852 1862 ataR3CmdOK(pCtl, s, ATA_STAT_SEEK); 1853 1863 }
Note:
See TracChangeset
for help on using the changeset viewer.