VirtualBox

Changeset 82297 in vbox


Ignore:
Timestamp:
Nov 29, 2019 11:25:46 PM (5 years ago)
Author:
vboxsync
Message:

DevPci: There are no more old style I/O port or MMIOEx ranges anymore. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r82221 r82297  
    25702570             */
    25712571            if (pRegion->type & PCI_ADDRESS_SPACE_IO)
    2572             {
    2573                 /* Port IO */
    2574                 rc = PDMDevHlpIOPortDeregister(pDev->Int.s.pDevInsR3, pRegion->addr, pRegion->size);
    2575                 AssertRC(rc);
    2576             }
     2572                AssertFailed();
    25772573            else
    25782574            {
    25792575                PDEVPCIBUSCC pBusCC     = PDMINS_2_DATA_CC(pDevIns, PDEVPCIBUSCC);
    25802576                RTGCPHYS     GCPhysBase = pRegion->addr;
    2581                 if (pBusCC->pPciHlpR3->pfnIsMMIOExBase(pDevIns, pDev->Int.s.pDevInsR3, GCPhysBase))
    2582                 {
    2583                     /* unmap it. */
    2584                     rc = pRegion->pfnMap(pDev->Int.s.pDevInsR3, pDev, iRegion,
    2585                                          NIL_RTGCPHYS, pRegion->size, (PCIADDRESSSPACE)(pRegion->type));
    2586                     AssertRC(rc);
    2587                     rc = PDMDevHlpMMIOExUnmap(pDev->Int.s.pDevInsR3, pDev, iRegion, GCPhysBase);
    2588                 }
    2589                 else
    2590                     rc = PDMDevHlpMMIODeregister(pDev->Int.s.pDevInsR3, GCPhysBase, pRegion->size);
     2577                Assert(!pBusCC->pPciHlpR3->pfnIsMMIOExBase(pDevIns, pDev->Int.s.pDevInsR3, GCPhysBase));
     2578                rc = PDMDevHlpMMIODeregister(pDev->Int.s.pDevInsR3, GCPhysBase, pRegion->size);
    25912579                AssertRC(rc);
    25922580            }
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