VirtualBox

Changeset 37269 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 30, 2011 9:15:14 PM (14 years ago)
Author:
vboxsync
Message:

AHCI: Fix return code for index/Data pair access

File:
1 edited

Legend:

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

    r37264 r37269  
    15251525    ahciLog(("%s: write u32Value=%#010x\n", __FUNCTION__, u32Value));
    15261526
     1527    Assert(!(u32Value & ~AHCI_PORT_FB_RESERVED));
     1528
    15271529    pAhciPort->regFB = (u32Value & AHCI_PORT_FB_RESERVED);
    15281530    pAhciPort->GCPhysAddrFb = AHCI_RTGCPHYS_FROM_U32(pAhciPort->regFBU, pAhciPort->regFB);
     
    15701572{
    15711573    ahciLog(("%s: write u32Value=%#010x\n", __FUNCTION__, u32Value));
     1574
     1575    Assert(!(u32Value & ~AHCI_PORT_CLB_RESERVED));
    15721576
    15731577    pAhciPort->regCLB = (u32Value & AHCI_PORT_CLB_RESERVED);
     
    23902394            Assert(iReg == 1);
    23912395            rc = ahciRegisterWrite(pAhci, pAhci->regIdx, &u32, cb);
     2396            if (rc == VINF_IOM_HC_MMIO_WRITE)
     2397                rc = VINF_IOM_HC_IOPORT_WRITE;
    23922398        }
    23932399    }
     
    24302436            Assert(iReg == 1);
    24312437            rc = ahciRegisterRead(pAhci, pAhci->regIdx, pu32, cb);
     2438            if (rc == VINF_IOM_HC_MMIO_READ)
     2439                rc = VINF_IOM_HC_IOPORT_READ;
    24322440        }
    24332441    }
     
    81608168    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    81618169
     8170    LogFlowFunc(("pThis=%#p\n", pThis));
     8171
    81628172    /*
    81638173     * Validate and read configuration.
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