VirtualBox

Changeset 14741 in vbox


Ignore:
Timestamp:
Nov 27, 2008 8:39:54 PM (16 years ago)
Author:
vboxsync
Message:

x86.h: Added X86_PTE_BIT_* for use with ASMAtomicBit*.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/x86.h

    r14135 r14741  
    971971 */
    972972/** Bit 0 -  P  - Present bit. */
     973#define X86_PTE_BIT_P                       0
     974/** Bit 1 - R/W - Read (clear) / Write (set) bit. */
     975#define X86_PTE_BIT_RW                      1)
     976/** Bit 2 - U/S - User (set) / Supervisor (clear) bit. */
     977#define X86_PTE_BIT_US                      2
     978/** Bit 3 - PWT - Page level write thru bit. */
     979#define X86_PTE_BIT_PWT                     3
     980/** Bit 4 - PCD - Page level cache disable bit. */
     981#define X86_PTE_BIT_PCD                     4
     982/** Bit 5 -  A  - Access bit. */
     983#define X86_PTE_BIT_A                       5
     984/** Bit 6 -  D  - Dirty bit. */
     985#define X86_PTE_BIT_D                       6
     986/** Bit 7 - PAT - Page Attribute Table index bit. Reserved and 0 if not supported. */
     987#define X86_PTE_BIT_PAT                     7
     988/** Bit 8 -  G  - Global flag. */
     989#define X86_PTE_BIT_G                       8
     990
     991/** Bit 0 -  P  - Present bit mask. */
    973992#define X86_PTE_P                           RT_BIT(0)
    974 /** Bit 1 - R/W - Read (clear) / Write (set) bit. */
     993/** Bit 1 - R/W - Read (clear) / Write (set) bit mask. */
    975994#define X86_PTE_RW                          RT_BIT(1)
    976 /** Bit 2 - U/S - User (set) / Supervisor (clear) bit. */
     995/** Bit 2 - U/S - User (set) / Supervisor (clear) bit mask. */
    977996#define X86_PTE_US                          RT_BIT(2)
    978 /** Bit 3 - PWT - Page level write thru bit. */
     997/** Bit 3 - PWT - Page level write thru bit mask. */
    979998#define X86_PTE_PWT                         RT_BIT(3)
    980 /** Bit 4 - PCD - Page level cache disable bit. */
     999/** Bit 4 - PCD - Page level cache disable bit mask. */
    9811000#define X86_PTE_PCD                         RT_BIT(4)
    982 /** Bit 5 -  A  - Access bit. */
     1001/** Bit 5 -  A  - Access bit mask. */
    9831002#define X86_PTE_A                           RT_BIT(5)
    984 /** Bit 6 -  D  - Dirty bit. */
     1003/** Bit 6 -  D  - Dirty bit mask. */
    9851004#define X86_PTE_D                           RT_BIT(6)
    986 /** Bit 7 - PAT - Page Attribute Table index bit. Reserved and 0 if not supported. */
     1005/** Bit 7 - PAT - Page Attribute Table index bit mask. Reserved and 0 if not supported. */
    9871006#define X86_PTE_PAT                         RT_BIT(7)
    988 /** Bit 8 -  G  - Global flag. */
     1007/** Bit 8 -  G  - Global bit mask. */
    9891008#define X86_PTE_G                           RT_BIT(8)
     1009
    9901010/** Bits 9-11 - - Available for use to system software. */
    9911011#define X86_PTE_AVL_MASK                    (RT_BIT(9) | RT_BIT(10) | RT_BIT(11))
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