Changeset 30066 in vbox
- Timestamp:
- Jun 7, 2010 12:37:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r29250 r30066 1245 1245 VMMDECL(int) PGMPhysGCPhys2CCPtr(PVM pVM, RTGCPHYS GCPhys, void **ppv, PPGMPAGEMAPLOCK pLock) 1246 1246 { 1247 int rc = pgmLock(pVM); 1248 AssertRCReturn(rc, rc); 1249 1247 1250 #if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0) 1248 1249 1251 /* 1250 1252 * Find the page and make sure it's writable. 1251 1253 */ 1252 1254 PPGMPAGE pPage; 1253 intrc = pgmPhysGetPageEx(&pVM->pgm.s, GCPhys, &pPage);1255 rc = pgmPhysGetPageEx(&pVM->pgm.s, GCPhys, &pPage); 1254 1256 if (RT_SUCCESS(rc)) 1255 1257 { … … 1271 1273 1272 1274 #else /* IN_RING3 || IN_RING0 */ 1273 int rc = pgmLock(pVM);1274 AssertRCReturn(rc, rc);1275 1276 1275 /* 1277 1276 * Query the Physical TLB entry for the page (may fail). … … 1325 1324 } 1326 1325 1326 #endif /* IN_RING3 || IN_RING0 */ 1327 1327 pgmUnlock(pVM); 1328 #endif /* IN_RING3 || IN_RING0 */1329 1328 return rc; 1330 1329 } … … 1357 1356 VMMDECL(int) PGMPhysGCPhys2CCPtrReadOnly(PVM pVM, RTGCPHYS GCPhys, void const **ppv, PPGMPAGEMAPLOCK pLock) 1358 1357 { 1358 int rc = pgmLock(pVM); 1359 AssertRCReturn(rc, rc); 1360 1359 1361 #if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0) 1360 1361 1362 /* 1362 1363 * Find the page and make sure it's readable. 1363 1364 */ 1364 1365 PPGMPAGE pPage; 1365 intrc = pgmPhysGetPageEx(&pVM->pgm.s, GCPhys, &pPage);1366 rc = pgmPhysGetPageEx(&pVM->pgm.s, GCPhys, &pPage); 1366 1367 if (RT_SUCCESS(rc)) 1367 1368 { … … 1383 1384 1384 1385 #else /* IN_RING3 || IN_RING0 */ 1385 int rc = pgmLock(pVM);1386 AssertRCReturn(rc, rc);1387 1388 1386 /* 1389 1387 * Query the Physical TLB entry for the page (may fail). … … 1427 1425 } 1428 1426 1427 #endif /* IN_RING3 || IN_RING0 */ 1429 1428 pgmUnlock(pVM); 1430 #endif /* IN_RING3 || IN_RING0 */1431 1429 return rc; 1432 1430 }
Note:
See TracChangeset
for help on using the changeset viewer.