VirtualBox

Changeset 2295 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 20, 2007 11:41:19 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20660
Message:

Made PGM_WITH_PAGING safe and faster.

File:
1 edited

Legend:

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

    r2288 r2295  
    205205/** @} */
    206206
    207 /** @name Defines used to check if the guest is using paging
    208  * @{ */
    209 #define PGM_WITH_PAGING(a)  (a == PGM_TYPE_32BIT || a == PGM_TYPE_PAE || a == PGM_TYPE_AMD64)
    210 /** @} */
     207/** Macro for checking if the guest is using paging.
     208 * @param uType     PGM_TYPE_*
     209 * @remark  ASSUMES certain order of the PGM_TYPE_* values.
     210 */
     211#define PGM_WITH_PAGING(uType)  ((uType) >= PGM_TYPE_32BIT)
     212
    211213
    212214/** @def PGM_HCPHYS_2_PTR
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette