Changeset 17465 in vbox
- Timestamp:
- Mar 6, 2009 1:09:17 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pgm.h
r17434 r17465 432 432 # ifdef IN_RC 433 433 VMMDECL(int) PGMDynMapHCPage(PVM pVM, RTHCPHYS HCPhys, void **ppv); 434 VMMDECL( int)PGMDynLockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage);435 VMMDECL( int)PGMDynUnlockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage);434 VMMDECL(void) PGMDynLockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage); 435 VMMDECL(void) PGMDynUnlockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage); 436 436 # ifdef VBOX_STRICT 437 437 VMMDECL(void) PGMDynCheckLocks(PVM pVM); -
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r17463 r17465 2299 2299 * Temporarily lock a dynamic page to prevent it from being reused. 2300 2300 * 2301 * @returns VINF_SUCCESS, will bail out to ring-3 on failure.2302 2301 * @param pVM VM handle. 2303 2302 * @param GCPage GC address of page 2304 2303 */ 2305 VMMDECL( int) PGMDynLockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage)2304 VMMDECL(void) PGMDynLockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage) 2306 2305 { 2307 2306 unsigned iPage; … … 2310 2309 iPage = ((uintptr_t)(GCPage - pVM->pgm.s.pbDynPageMapBaseGC)) >> PAGE_SHIFT; 2311 2310 ASMAtomicIncU32(&pVM->pgm.s.aLockedDynPageMapCache[iPage]); 2312 return VINF_SUCCESS;2313 2311 } 2314 2312 … … 2317 2315 * Unlock a dynamic page 2318 2316 * 2319 * @returns VINF_SUCCESS, will bail out to ring-3 on failure.2320 2317 * @param pVM VM handle. 2321 2318 * @param GCPage GC address of page 2322 2319 */ 2323 VMMDECL( int) PGMDynUnlockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage)2320 VMMDECL(void) PGMDynUnlockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage) 2324 2321 { 2325 2322 unsigned iPage; … … 2331 2328 Assert(pVM->pgm.s.aLockedDynPageMapCache[iPage]); 2332 2329 ASMAtomicDecU32(&pVM->pgm.s.aLockedDynPageMapCache[iPage]); 2333 return VINF_SUCCESS;2334 2330 } 2335 2331 -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r17438 r17465 858 858 int pgmPhysGCPhys2CCPtrInternalReadOnly(PVM pVM, PPGMPAGE pPage, RTGCPHYS GCPhys, const void **ppv) 859 859 { 860 int rc;861 860 AssertReturn(pPage, VERR_INTERNAL_ERROR); 862 861 Assert(PDMCritSectIsOwner(&pVM->pgm.s.CritSect) || VM_IS_EMT(pVM)); … … 870 869 #else 871 870 PPGMPAGEMAPTLBE pTlbe; 872 rc = pgmPhysPageQueryTlbeWithPage(&pVM->pgm.s, pPage, GCPhys, &pTlbe);871 int rc = pgmPhysPageQueryTlbeWithPage(&pVM->pgm.s, pPage, GCPhys, &pTlbe); 873 872 if (RT_FAILURE(rc)) 874 873 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.