Changeset 15226 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Dec 10, 2008 4:25:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp ¶
r15161 r15226 1964 1964 # endif /* IN_RC */ 1965 1965 1966 1967 /**1968 * Temporarily maps one host page specified by HC physical address, returning1969 * pointer within the page.1970 *1971 * Be WARNED that the dynamic page mapping area is small, 8 pages, thus the space is1972 * reused after 8 mappings (or perhaps a few more if you score with the cache).1973 *1974 * @returns VBox status.1975 * @param pVM VM handle.1976 * @param HCPhys HC Physical address of the page.1977 * @param ppv Where to store the address corresponding to HCPhys.1978 */1979 VMMDECL(int) PGMDynMapHCPageOff(PVM pVM, RTHCPHYS HCPhys, void **ppv)1980 {1981 int rc = PGMDynMapHCPage(pVM, HCPhys & ~(RTHCPHYS)PAGE_OFFSET_MASK, ppv);1982 if (RT_SUCCESS(rc))1983 *ppv = (void *)((uintptr_t)*ppv | (HCPhys & PAGE_OFFSET_MASK));1984 return rc;1985 }1986 1987 1966 #endif /* IN_RC || VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 */ 1988 1967 #ifdef VBOX_STRICT
Note:
See TracChangeset
for help on using the changeset viewer.