VirtualBox

Changeset 83132 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Feb 21, 2020 12:31:05 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136246
Message:

DevBusLogic: Corrected R0 port handler registration.

File:
1 edited

Legend:

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

    r83127 r83132  
    11901190 * @param   pThis           Pointer to the shared BusLogic instance data.
    11911191 * @param   fSuppressIrq    Flag to suppress IRQ generation regardless of current state
    1192  * @param   fNoComplStat    Flag to suppress command completion status as well
     1192 * @param   fSuppressCMDC   Flag to suppress command completion status as well
    11931193 */
    11941194static void buslogicCommandComplete(PPDMDEVINS pDevIns, PBUSLOGIC pThis, bool fSuppressIrq, bool fSuppressCMDC)
     
    12011201    pThis->iReply = 0;
    12021202
    1203     /* Some commands do not set CMDC when successful. */
     1203    /* The Enable OMBR command does not set CMDC when successful. */
    12041204    if (!fSuppressCMDC)
    12051205    {
     
    43804380    if (!pThis->uIsaIrq)
    43814381    {
    4382         Assert(pThis->hIoPortsIsa == NIL_IOMIOPORTHANDLE);
    4383 
    43844382        int rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortsPci, buslogicIOPortWrite, buslogicIOPortRead, NULL /*pvUser*/);
    43854383        AssertRCReturn(rc, rc);
     
    43884386        AssertRCReturn(rc, rc);
    43894387    }
    4390     else
    4391     {
    4392         Assert(pThis->hIoPortsPci == NIL_IOMIOPORTHANDLE);
    4393         Assert(pThis->hMmio       == NIL_IOMMMIOHANDLE);
    4394 
    4395         int rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortsIsa, buslogicIOPortWrite, buslogicIOPortRead, NULL /*pvUser*/);
    4396         AssertRCReturn(rc, rc);
    4397     }
     4388
     4389    int rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortsIsa, buslogicIOPortWrite, buslogicIOPortRead, NULL /*pvUser*/);
     4390    AssertRCReturn(rc, rc);
    43984391
    43994392    return VINF_SUCCESS;
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