Changeset 77300 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 13, 2019 1:59:41 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128820
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r76553 r77300 1234 1234 1235 1235 /** 1236 * @callback_method_impl{FNPCIIOREGIONSWAP} 1237 */ 1238 static DECLCALLBACK(int) devpciR3CommonRestoreSwapRegions(PPDMPCIDEV pPciDev, uint32_t iRegion, uint32_t iOtherRegion) 1239 { 1240 AssertReturn(iRegion < iOtherRegion, VERR_INVALID_PARAMETER); 1241 AssertLogRelReturn(iOtherRegion < RT_ELEMENTS(pPciDev->Int.s.aIORegions), VERR_INVALID_PARAMETER); 1242 AssertReturn(pPciDev->Int.s.bPadding0 == (0xe0 | (uint8_t)iRegion), VERR_INVALID_PARAMETER); 1243 1244 PCIIOREGION Tmp = pPciDev->Int.s.aIORegions[iRegion]; 1245 pPciDev->Int.s.aIORegions[iRegion] = pPciDev->Int.s.aIORegions[iOtherRegion]; 1246 pPciDev->Int.s.aIORegions[iOtherRegion] = Tmp; 1247 1248 return VINF_SUCCESS; 1249 } 1250 1251 1252 /** 1236 1253 * Checks for and deals with changes in resource sizes and types. 1237 1254 * … … 1260 1277 if (pPciDev->pfnRegionLoadChangeHookR3) 1261 1278 { 1279 pPciDev->Int.s.bPadding0 = 0xe0 | (uint8_t)iRegion; 1262 1280 rc = pPciDev->pfnRegionLoadChangeHookR3(pPciDev->Int.s.pDevInsR3, pPciDev, iRegion, paIoRegions[iRegion].size, 1263 (PCIADDRESSSPACE)paIoRegions[iRegion].type, NULL /*pfnOldSetter*/); 1281 (PCIADDRESSSPACE)paIoRegions[iRegion].type, NULL /*pfnOldSetter*/, 1282 devpciR3CommonRestoreSwapRegions); 1283 pPciDev->Int.s.bPadding0 = 0; 1264 1284 if (RT_FAILURE(rc)) 1265 1285 return SSMR3SetLoadError(pSSM, rc, RT_SRC_POS, … … 1279 1299 { 1280 1300 rc = pPciDev->pfnRegionLoadChangeHookR3(pPciDev->Int.s.pDevInsR3, pPciDev, UINT32_MAX, RTGCPHYS_MAX, (PCIADDRESSSPACE)-1, 1281 devpciR3CommonRestoreOldSetRegion );1301 devpciR3CommonRestoreOldSetRegion, NULL); 1282 1302 if (RT_FAILURE(rc)) 1283 1303 return SSMR3SetLoadError(pSSM, rc, RT_SRC_POS, N_("Device %s/%u failed to resize its resources: %Rrc"),
Note:
See TracChangeset
for help on using the changeset viewer.