Changeset 65117 in vbox for trunk/src/VBox/HostDrivers/VBoxPci
- Timestamp:
- Jan 4, 2017 5:08:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c
r62490 r65117 278 278 uint64_t u64RegionSize, 279 279 int32_t fFlags, 280 RTR0PTR *pRegionBase )281 { 282 PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort); 283 int rc; 284 285 vboxPciDevLock(pThis); 286 287 rc = vboxPciOsDevMapRegion(pThis, iRegion, RegionStart, u64RegionSize, fFlags, pRegionBase );280 RTR0PTR *pRegionBaseR0) 281 { 282 PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort); 283 int rc; 284 285 vboxPciDevLock(pThis); 286 287 rc = vboxPciOsDevMapRegion(pThis, iRegion, RegionStart, u64RegionSize, fFlags, pRegionBaseR0); 288 288 289 289 vboxPciDevUnlock(pThis); … … 444 444 * @returns VBox status code. 445 445 * @param pGlobals The globals. 446 * @param pszName The instance name. 446 * @param u32HostAddress Host address. 447 * @param fFlags Flags. 448 * @param pVmCtx VM context. 447 449 * @param ppDevPort Where to store the pointer to our port interface. 450 * @param pfDevFlags The device flags. 448 451 */ 449 452 static int vboxPciNewInstance(PVBOXRAWPCIGLOBALS pGlobals, … … 600 603 static DECLCALLBACK(void) vboxPciFactoryDeinitVm(PRAWPCIFACTORY pFactory, 601 604 PVM pVM, 602 PRAWPCIPERVM p PciData)603 { 604 if (p PciData->pDriverData)605 { 606 PVBOXRAWPCIDRVVM pThis = (PVBOXRAWPCIDRVVM)p PciData->pDriverData;605 PRAWPCIPERVM pVmData) 606 { 607 if (pVmData->pDriverData) 608 { 609 PVBOXRAWPCIDRVVM pThis = (PVBOXRAWPCIDRVVM)pVmData->pDriverData; 607 610 608 611 #ifdef VBOX_WITH_IOMMU … … 619 622 620 623 RTMemFree(pThis); 621 p PciData->pDriverData = NULL;624 pVmData->pDriverData = NULL; 622 625 } 623 626 }
Note:
See TracChangeset
for help on using the changeset viewer.