Changeset 12964 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Oct 2, 2008 10:25:43 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r12938 r12964 3142 3142 Assert(pPDSrc); 3143 3143 # 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); 3145 3145 # endif 3146 3146 # endif -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r11570 r12964 900 900 return VERR_PGM_PHYS_PAGE_RESERVED; 901 901 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 */ 913 PGMDECL(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; 902 920 } 903 921
Note:
See TracChangeset
for help on using the changeset viewer.