VirtualBox

Changeset 82153 in vbox for trunk/src


Ignore:
Timestamp:
Nov 25, 2019 8:14:42 AM (5 years ago)
Author:
vboxsync
Message:

DevBusLogic: Fixed R0 setup in ISA-only mode.

File:
1 edited

Legend:

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

    r81853 r82153  
    43564356    PBUSLOGIC pThis = PDMDEVINS_2_DATA(pDevIns, PBUSLOGIC);
    43574357
    4358     int rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortsPci, buslogicIOPortWrite, buslogicIOPortRead, NULL /*pvUser*/);
    4359     AssertRCReturn(rc, rc);
    4360 
    4361     rc = PDMDevHlpMmioSetUpContext(pDevIns, pThis->hMmio, buslogicMMIOWrite, buslogicMMIORead, NULL /*pvUser*/);
    4362     AssertRCReturn(rc, rc);
     4358    if (!pThis->uIsaIrq) {
     4359        int rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortsPci, buslogicIOPortWrite, buslogicIOPortRead, NULL /*pvUser*/);
     4360        AssertRCReturn(rc, rc);
     4361
     4362        rc = PDMDevHlpMmioSetUpContext(pDevIns, pThis->hMmio, buslogicMMIOWrite, buslogicMMIORead, NULL /*pvUser*/);
     4363        AssertRCReturn(rc, rc);
     4364    }
     4365    else
     4366    {
     4367        int rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortsIsa, buslogicIOPortWrite, buslogicIOPortRead, NULL /*pvUser*/);
     4368        AssertRCReturn(rc, rc);
     4369    }
    43634370
    43644371    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