- Timestamp:
- Oct 22, 2007 3:59:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r5364 r5438 894 894 uint32_t cbLimit, cbTransfer; 895 895 896 if (s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE) 896 cbLimit = s->uATARegLCyl | (s->uATARegHCyl << 8); 897 /* Use maximum transfer size if the guest requested 0. Avoids a hang. */ 898 if (cbLimit == 0) 897 899 cbLimit = 0xfffe; 898 else899 cbLimit = s->uATARegLCyl | (s->uATARegHCyl << 8);900 900 Log2(("%s: byte count limit=%d\n", __FUNCTION__, cbLimit)); 901 901 if (cbLimit == 0xffff) … … 904 904 if (cbTransfer > cbLimit) 905 905 { 906 /* byte count limit must be even ifthis case */906 /* Byte count limit for clipping mubyte count limit must be even in this case */ 907 907 if (cbLimit & 1) 908 908 cbLimit--; … … 5973 5973 pData->dev.config[0x00] = 0x86; /* Vendor: Intel */ 5974 5974 pData->dev.config[0x01] = 0x80; 5975 if (pData->fPIIX4) 5975 if (pData->fPIIX4) 5976 5976 { 5977 5977 pData->dev.config[0x02] = 0x11; /* Device: PIIX4 IDE */
Note:
See TracChangeset
for help on using the changeset viewer.