VirtualBox

Changeset 16206 in vbox


Ignore:
Timestamp:
Jan 23, 2009 5:35:27 PM (16 years ago)
Author:
vboxsync
Message:

try to fix the mac builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMInternal.h

    r16203 r16206  
    29712971
    29722972
    2973 #if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0)
    2974 /**
    2975  * Maps the page into current context (RC and maybe R0).
    2976  *
    2977  * @returns pointer to the mapping.
    2978  * @param   pVM         Pointer to the PGM instance data.
    2979  * @param   pPage       The page.
    2980  */
    2981 DECLINLINE(void *) pgmPoolMapPageInlined(PPGM pPGM, PPGMPOOLPAGE pPage)
    2982 {
    2983     if (pPage->idx >= PGMPOOL_IDX_FIRST)
    2984     {
    2985         Assert(pPage->idx < pPGM->CTX_SUFF(pPool)->cCurPages);
    2986         void *pv;
    2987 # ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    2988         pgmR0DynMapHCPageInlined(pPGM, pPage->Core.Key, &pv);
    2989 # else
    2990         PGMDynMapHCPage(PGM2VM(pPGM), pPage->Core.Key, &pv);
    2991 # endif
    2992         return pv;
    2993     }
    2994     return pgmPoolMapPageFallback(pPGM, pPage);
    2995 }
    2996 #endif
    2997 
    29982973/**
    29992974 * Gets the PGMRAMRANGE structure for a guest page.
     
    33903365#endif /* VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 */
    33913366
    3392 #if defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0) || defined(IN_RC)
     3367#if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0)
     3368/**
     3369 * Maps the page into current context (RC and maybe R0).
     3370 *
     3371 * @returns pointer to the mapping.
     3372 * @param   pVM         Pointer to the PGM instance data.
     3373 * @param   pPage       The page.
     3374 */
     3375DECLINLINE(void *) pgmPoolMapPageInlined(PPGM pPGM, PPGMPOOLPAGE pPage)
     3376{
     3377    if (pPage->idx >= PGMPOOL_IDX_FIRST)
     3378    {
     3379        Assert(pPage->idx < pPGM->CTX_SUFF(pPool)->cCurPages);
     3380        void *pv;
     3381# ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
     3382        pgmR0DynMapHCPageInlined(pPGM, pPage->Core.Key, &pv);
     3383# else
     3384        PGMDynMapHCPage(PGM2VM(pPGM), pPage->Core.Key, &pv);
     3385# endif
     3386        return pv;
     3387    }
     3388    return pgmPoolMapPageFallback(pPGM, pPage);
     3389}
     3390
    33933391/**
    33943392 * Temporarily maps one host page specified by HC physical address, returning
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