VirtualBox

Changeset 5438 in vbox for trunk/src


Ignore:
Timestamp:
Oct 22, 2007 3:59:18 PM (17 years ago)
Author:
vboxsync
Message:

Fix SuSE 9.1 install regression.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r5364 r5438  
    894894    uint32_t cbLimit, cbTransfer;
    895895
    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)
    897899        cbLimit = 0xfffe;
    898     else
    899         cbLimit = s->uATARegLCyl | (s->uATARegHCyl << 8);
    900900    Log2(("%s: byte count limit=%d\n", __FUNCTION__, cbLimit));
    901901    if (cbLimit == 0xffff)
     
    904904    if (cbTransfer > cbLimit)
    905905    {
    906         /* byte count limit must be even if this case */
     906        /* Byte count limit for clipping mubyte count limit must be even in this case */
    907907        if (cbLimit & 1)
    908908            cbLimit--;
     
    59735973    pData->dev.config[0x00] = 0x86; /* Vendor: Intel */
    59745974    pData->dev.config[0x01] = 0x80;
    5975     if (pData->fPIIX4) 
     5975    if (pData->fPIIX4)
    59765976    {
    59775977        pData->dev.config[0x02] = 0x11; /* Device: PIIX4 IDE */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette