VirtualBox

Changeset 11525 in vbox for trunk/src/VBox/VMM/PGMInternal.h


Ignore:
Timestamp:
Aug 21, 2008 9:07:51 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35088
Message:

Added support for PSE-36.

File:
1 edited

Legend:

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

    r11309 r11525  
    22242224    RTHCPHYS                        aHCPhysDynPageMapCache[MM_HYPER_DYNAMIC_SIZE >> (PAGE_SHIFT + 1)];
    22252225
     2226    /** 4 MB page mask; 32 or 36 bits depending on PSE-36 */
     2227    RTGCPHYS                        GCPhys4MBPSEMask;
     2228
    22262229    /** A20 gate mask.
    22272230     * Our current approach to A20 emulation is to let REM do it and don't bother
     
    32423245}
    32433246
     3247/**
     3248 * Calculated the guest physical address of the large (4 MB) page in 32 bits paging mode.
     3249 * Takes PSE-36 into account.
     3250 *
     3251 * @returns guest physical address
     3252 * @param   pPGM        Pointer to the PGM instance data.
     3253 * @param   Pde         Guest Pde
     3254 */
     3255DECLINLINE(RTGCPHYS) pgmGstGet4MBPhysPage(PPGM pPGM, X86PDE Pde)
     3256{
     3257    RTGCPHYS GCPhys = Pde.u & X86_PDE4M_PG_MASK;
     3258    GCPhys |= (RTGCPHYS)Pde.b.u8PageNoHigh << 32;
     3259
     3260    return GCPhys & pPGM->GCPhys4MBPSEMask;
     3261}
    32443262
    32453263/**
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