VirtualBox

Changeset 17465 in vbox


Ignore:
Timestamp:
Mar 6, 2009 1:09:17 PM (16 years ago)
Author:
vboxsync
Message:

Removed unused return code

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pgm.h

    r17434 r17465  
    432432# ifdef IN_RC
    433433VMMDECL(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);
     434VMMDECL(void)       PGMDynLockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage);
     435VMMDECL(void)       PGMDynUnlockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage);
    436436#  ifdef VBOX_STRICT
    437437VMMDECL(void)       PGMDynCheckLocks(PVM pVM);
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r17463 r17465  
    22992299 * Temporarily lock a dynamic page to prevent it from being reused.
    23002300 *
    2301  * @returns VINF_SUCCESS, will bail out to ring-3 on failure.
    23022301 * @param   pVM         VM handle.
    23032302 * @param   GCPage      GC address of page
    23042303 */
    2305 VMMDECL(int) PGMDynLockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage)
     2304VMMDECL(void) PGMDynLockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage)
    23062305{
    23072306    unsigned iPage;
     
    23102309    iPage = ((uintptr_t)(GCPage - pVM->pgm.s.pbDynPageMapBaseGC)) >> PAGE_SHIFT;
    23112310    ASMAtomicIncU32(&pVM->pgm.s.aLockedDynPageMapCache[iPage]);
    2312     return VINF_SUCCESS;
    23132311}
    23142312
     
    23172315 * Unlock a dynamic page
    23182316 *
    2319  * @returns VINF_SUCCESS, will bail out to ring-3 on failure.
    23202317 * @param   pVM         VM handle.
    23212318 * @param   GCPage      GC address of page
    23222319 */
    2323 VMMDECL(int) PGMDynUnlockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage)
     2320VMMDECL(void) PGMDynUnlockHCPage(PVM pVM, RCPTRTYPE(uint8_t *) GCPage)
    23242321{
    23252322    unsigned iPage;
     
    23312328    Assert(pVM->pgm.s.aLockedDynPageMapCache[iPage]);
    23322329    ASMAtomicDecU32(&pVM->pgm.s.aLockedDynPageMapCache[iPage]);
    2333     return VINF_SUCCESS;
    23342330}
    23352331
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r17438 r17465  
    858858int pgmPhysGCPhys2CCPtrInternalReadOnly(PVM pVM, PPGMPAGE pPage, RTGCPHYS GCPhys, const void **ppv)
    859859{
    860     int rc;
    861860    AssertReturn(pPage, VERR_INTERNAL_ERROR);
    862861    Assert(PDMCritSectIsOwner(&pVM->pgm.s.CritSect) || VM_IS_EMT(pVM));
     
    870869#else
    871870    PPGMPAGEMAPTLBE pTlbe;
    872     rc = pgmPhysPageQueryTlbeWithPage(&pVM->pgm.s, pPage, GCPhys, &pTlbe);
     871    int rc = pgmPhysPageQueryTlbeWithPage(&pVM->pgm.s, pPage, GCPhys, &pTlbe);
    873872    if (RT_FAILURE(rc))
    874873        return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette