VirtualBox

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


Ignore:
Timestamp:
Dec 10, 2008 4:25:34 AM (16 years ago)
Author:
vboxsync
Message:

PGM: Inlined PGMDynMapHCPageOff (get rid of it perhaps?).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r15161 r15226  
    19641964# endif /* IN_RC */
    19651965
    1966 
    1967 /**
    1968  * Temporarily maps one host page specified by HC physical address, returning
    1969  * pointer within the page.
    1970  *
    1971  * Be WARNED that the dynamic page mapping area is small, 8 pages, thus the space is
    1972  * 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 
    19871966#endif /* IN_RC || VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 */
    19881967#ifdef VBOX_STRICT
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