Changeset 82297 in vbox
- Timestamp:
- Nov 29, 2019 11:25:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r82221 r82297 2570 2570 */ 2571 2571 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(); 2577 2573 else 2578 2574 { 2579 2575 PDEVPCIBUSCC pBusCC = PDMINS_2_DATA_CC(pDevIns, PDEVPCIBUSCC); 2580 2576 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); 2591 2579 AssertRC(rc); 2592 2580 }
Note:
See TracChangeset
for help on using the changeset viewer.