VirtualBox

Changeset 7666 in vbox for trunk/include


Ignore:
Timestamp:
Mar 31, 2008 3:02:43 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29178
Message:

Put back the original PAE defines. AMD differs from Intel wrt valid pae & long mode physical address bits.

File:
1 edited

Legend:

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

    r7660 r7666  
    899899#define X86_PTE_PG_MASK                     ( 0xfffff000 )
    900900
    901 /** Bits 12-51 - - PAE - Physical Page number of the next level. */
     901/** Bits 12-36 - - PAE - Physical Page number of the next level. */
    902902#if 1 /* we're using this internally and have to mask of the top 16-bit. */
    903903#define X86_PTE_PAE_PG_MASK                 ( 0x0000fffffffff000ULL )
     
    12101210#define X86_PDE4M_PG_HIGH_SHIFT             19
    12111211
    1212 /** Bits 21-36 - - PAE - Physical Page number. */
    1213 #define X86_PDE2M_PAE_PG_MASK               ( 0x0000000fffe00000ULL )
    1214 /** Bits 63 - NX - PAE - No execution flag. */
    1215 #define X86_PDE2M_PAE_NX                    RT_BIT_64(63)
    1216 
    1217 /** Bits 21-39 - - AMD64 - Physical Page number. (bits 40-51 are reserved) */
    1218 #define X86_PDE2M_AMD64_PG_MASK             ( 0x000000ffffe00000ULL )
    1219 /** Bits 63 - NX - AMD64 - No execution flag. */
    1220 #define X86_PDE2M_AMD64_NX                  X86_PDE2M_PAE_NX
     1212/** 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) */
     1213#define X86_PDE2M_PAE_PG_MASK               ( 0x000fffffffe00000ULL )
     1214/** Bits 63 - NX - PAE & AMD64 - No execution flag. */
     1215#define X86_PDE2M_PAE_NX                    X86_PDE2M_PAE_NX
    12211216
    12221217/**
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