Changeset 25900 in vbox
- Timestamp:
- Jan 18, 2010 3:39:35 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56712
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ATAController.cpp
r25732 r25900 4693 4693 cTransAvailable = (s->iIOBufferPIODataEnd - s->iIOBufferPIODataStart) / cb; 4694 4694 #ifndef IN_RING3 4695 /* Deal with the unlikely case where no data (or not enough for the read length operation) is available; go back to ring 3. */ 4696 if (!cTransAvailable) 4697 { 4698 PDMCritSectLeave(&pCtl->lock); 4699 return VINF_IOM_HC_IOPORT_READ; 4700 } 4695 4701 /* The last transfer unit cannot be handled in GC, as it involves thread communication. */ 4696 4702 cTransAvailable--; … … 4739 4745 cTransAvailable = (s->iIOBufferPIODataEnd - s->iIOBufferPIODataStart) / cb; 4740 4746 #ifndef IN_RING3 4747 /* Deal with the unlikely case where no data (or not enough for the read length operation) is available; go back to ring 3. */ 4748 if (!cTransAvailable) 4749 { 4750 PDMCritSectLeave(&pCtl->lock); 4751 return VINF_IOM_HC_IOPORT_WRITE; 4752 } 4741 4753 /* The last transfer unit cannot be handled in GC, as it involves thread communication. */ 4742 4754 cTransAvailable--; -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r25897 r25900 5394 5394 return VINF_IOM_HC_IOPORT_READ; 5395 5395 } 5396 5397 5396 /* The last transfer unit cannot be handled in GC, as it involves thread communication. */ 5398 5397 cTransAvailable--; … … 5447 5446 cTransAvailable = (s->iIOBufferPIODataEnd - s->iIOBufferPIODataStart) / cb; 5448 5447 #ifndef IN_RING3 5448 /* Deal with the unlikely case where no data (or not enough for the read length operation) is available; go back to ring 3. */ 5449 if (!cTransAvailable) 5450 { 5451 PDMCritSectLeave(&pCtl->lock); 5452 return VINF_IOM_HC_IOPORT_WRITE; 5453 } 5449 5454 /* The last transfer unit cannot be handled in GC, as it involves thread communication. */ 5450 5455 cTransAvailable--;
Note:
See TracChangeset
for help on using the changeset viewer.