VirtualBox

Changeset 7705 in vbox


Ignore:
Timestamp:
Apr 2, 2008 3:27:47 PM (17 years ago)
Author:
vboxsync
Message:

Fixed some comments. Added a todo on my PDPTR mistake.

File:
1 edited

Legend:

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

    r7695 r7705  
    832832
    833833
    834 /** PAE page table/page directory/pdptr/l4/l5 entry as an unsigned integer. */
     834/** PAE page table/page directory/pdpt/l4/l5 entry as an unsigned integer. */
    835835typedef uint64_t X86PGPAEUINT;
    836 /** Pointer to a PAE page table/page directory/pdptr/l4/l5 entry as an unsigned integer. */
     836/** Pointer to a PAE page table/page directory/pdpt/l4/l5 entry as an unsigned integer. */
    837837typedef X86PGPAEUINT *PX86PGPAEUINT;
    838838
    839 /** Number of entries in a PAE PT/PD/PDPTR/L4/L5. */
     839/** Number of entries in a PAE PT/PD. */
    840840#define X86_PG_PAE_ENTRIES                  512
    841 /** Number of entries in a PAE PDPTE. */
     841/** Number of entries in a PAE PDPT. */
    842842#define X86_PG_PAE_PDPE_ENTRIES             4
    843843
    844 /** Number of entries in an AMD64 PT/PD/PDPTR/L4/L5. */
     844/** Number of entries in an AMD64 PT/PD/PDPT/L4/L5. */
    845845#define X86_PG_AMD64_ENTRIES                X86_PG_PAE_ENTRIES
    846 /** Number of entries in an AMD64 PDPTE. */
    847 #define X86_PG_AMD64_PDPE_ENTRIES           512
     846/** Number of entries in an AMD64 PDPT.
     847 * Just for complementing X86_PG_PAE_PDPE_ENTRIES, using X86_PG_AMD64_ENTRIES for this is fine too. */
     848#define X86_PG_AMD64_PDPE_ENTRIES           X86_PG_AMD64_ENTRIES
    848849
    849850/** The size of a 4KB page. */
     
    908909#define X86_PTE_PG_MASK                     ( 0xfffff000 )
    909910
    910 /** Bits 12-36 - - PAE - Physical Page number of the next level. */
     911/** Bits 12-51 - - PAE - Physical Page number of the next level. */
    911912#if 1 /* we're using this internally and have to mask of the top 16-bit. */
    912913#define X86_PTE_PAE_PG_MASK                 ( 0x0000fffffffff000ULL )
     
    12191220#define X86_PDE4M_PG_HIGH_SHIFT             19
    12201221
    1221 /** Bits 21-51 - - PAE & AMD64 - Physical Page number. (bits 40-51 (long mode) & bits 36-51 (pae legacy) are reserved according to the Intel docs; AMD allows for more) */
     1222/** Bits 21-51 - - PAE & AMD64 - Physical Page number.
     1223 * (Bits 40-51 (long mode) & bits 36-51 (pae legacy) are reserved according to the Intel docs; AMD allows for more.) */
    12221224#define X86_PDE2M_PAE_PG_MASK               ( 0x000fffffffe00000ULL )
    12231225/** Bits 63 - NX - PAE & AMD64 - No execution flag. */
     
    14841486/**
    14851487 * Page directory pointer table.
     1488 * @todo Rename to PDPT - The 'r' in PDPTR is 'register' according to the intel docs.
    14861489 */
    14871490typedef struct X86PDPTR
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