Changeset 30572 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Jul 2, 2010 11:52:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r30338 r30572 1679 1679 if (RT_SUCCESS(rc)) 1680 1680 rc = PGMPhysGCPhys2HCPhys(pVM, GCPhys | ((RTGCUINTPTR)GCPtr & PAGE_OFFSET_MASK), pHCPhys); 1681 return rc;1682 }1683 1684 1685 /**1686 * Converts a guest pointer to a R3 pointer.1687 *1688 * This uses the current CR3/CR0/CR4 of the guest.1689 *1690 * @returns VBox status code.1691 * @param pVCpu The VMCPU Handle1692 * @param GCPtr The guest pointer to convert.1693 * @param pR3Ptr Where to store the R3 virtual address.1694 *1695 * @deprecated Don't use this.1696 */1697 VMMDECL(int) PGMPhysGCPtr2R3Ptr(PVMCPU pVCpu, RTGCPTR GCPtr, PRTR3PTR pR3Ptr)1698 {1699 PVM pVM = pVCpu->CTX_SUFF(pVM);1700 VM_ASSERT_EMT(pVM); /* no longer safe for use outside the EMT thread! */1701 RTGCPHYS GCPhys;1702 int rc = PGM_GST_PFN(GetPage,pVCpu)(pVCpu, (RTGCUINTPTR)GCPtr, NULL, &GCPhys);1703 if (RT_SUCCESS(rc))1704 rc = PGMPhysGCPhys2R3Ptr(pVM, GCPhys | ((RTGCUINTPTR)GCPtr & PAGE_OFFSET_MASK), 1 /* we always stay within one page */, pR3Ptr);1705 1681 return rc; 1706 1682 }
Note:
See TracChangeset
for help on using the changeset viewer.