VirtualBox

Changeset 12964 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 2, 2008 10:25:43 PM (16 years ago)
Author:
vboxsync
Message:

VMM: MMPhysGCPhys2HCVirt -> PGMPhysGCPhys2HCPtrAssert; deleted MMAllPhys.cpp.

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r12938 r12964  
    31423142    Assert(pPDSrc);
    31433143#   ifndef IN_GC
    3144     Assert(MMPhysGCPhys2HCVirt(pVM, (RTGCPHYS)(cr3 & GST_CR3_PAGE_MASK), sizeof(*pPDSrc)) == pPDSrc);
     3144    Assert(PGMPhysGCPhys2HCPtrAssert(pVM, (RTGCPHYS)(cr3 & GST_CR3_PAGE_MASK), sizeof(*pPDSrc)) == pPDSrc);
    31453145#   endif
    31463146#  endif
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r11570 r12964  
    900900        return VERR_PGM_PHYS_PAGE_RESERVED;
    901901    return VINF_SUCCESS;
     902}
     903
     904
     905/**
     906 * PGMPhysGCPhys2HCPtr convenience for use with assertions.
     907 *
     908 * @returns The HCPtr, NIL_RTHCPTR on failure.
     909 * @param   pVM         The VM handle.
     910 * @param   GCPhys      The GC Physical addresss.
     911 * @param   cbRange     Physical range.
     912 */
     913PGMDECL(RTHCPTR) PGMPhysGCPhys2HCPtrAssert(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange)
     914{
     915    RTHCPTR HCPtr;
     916    int rc = PGMPhysGCPhys2HCPtr(pVM, GCPhys, cbRange, &HCPtr);
     917    if (VBOX_SUCCESS(rc))
     918        return HCPtr;
     919    return NIL_RTHCPTR;
    902920}
    903921
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