Changeset 16206 in vbox
- Timestamp:
- Jan 23, 2009 5:35:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMInternal.h
r16203 r16206 2971 2971 2972 2972 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_R02988 pgmR0DynMapHCPageInlined(pPGM, pPage->Core.Key, &pv);2989 # else2990 PGMDynMapHCPage(PGM2VM(pPGM), pPage->Core.Key, &pv);2991 # endif2992 return pv;2993 }2994 return pgmPoolMapPageFallback(pPGM, pPage);2995 }2996 #endif2997 2998 2973 /** 2999 2974 * Gets the PGMRAMRANGE structure for a guest page. … … 3390 3365 #endif /* VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 */ 3391 3366 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 */ 3375 DECLINLINE(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 3393 3391 /** 3394 3392 * Temporarily maps one host page specified by HC physical address, returning
Note:
See TracChangeset
for help on using the changeset viewer.