VirtualBox

Changeset 36933 in vbox


Ignore:
Timestamp:
May 3, 2011 1:42:57 PM (14 years ago)
Author:
vboxsync
Message:

PGMPAGE: A bit more.

File:
1 edited

Legend:

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

    r36931 r36933  
    10601060 * @param   a_uType     PGM_PAGE_PDE_TYPE_*.
    10611061 */
     1062#ifdef PGMPAGE_USE_MORE_BITFIELDS
     1063#define PGM_PAGE_SET_PDE_TYPE(a_pPage, a_uType) \
     1064    do { (a_pPage)->u1.bit.u2PDETypeY = (a_uType); } while (0)
     1065#else
    10621066#define PGM_PAGE_SET_PDE_TYPE(a_pPage, a_uType) \
    10631067    do { \
     
    10651069                             | (((a_uType)           & UINT8_C(0x03)) << 5); \
    10661070    } while (0)
     1071#endif
    10671072
    10681073/**
     
    10711076 * @param   a_pPage     Pointer to the physical guest page tracking structure.
    10721077 */
     1078#ifdef PGMPAGE_USE_MORE_BITFIELDS
     1079#define PGM_PAGE_GET_PDE_TYPE(a_pPage)          ( (a_pPage)->u1.bit.u2PDETypeY )
     1080#else
    10731081#define PGM_PAGE_GET_PDE_TYPE(a_pPage)          ( ((a_pPage)->u1.au8[1] & UINT8_C(0x60)) >> 5)
     1082#endif
    10741083
    10751084/** Enabled optimized access handler tests.
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