VirtualBox

Changeset 7657 in vbox


Ignore:
Timestamp:
Mar 31, 2008 1:26:24 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29167
Message:

Renamed 4M to BIG

Location:
trunk/src/VBox/VMM
Files:
4 edited

Legend:

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

    r6764 r7657  
    3030#undef GST_BIG_PAGE_OFFSET_MASK
    3131#undef GST_PDE_PG_MASK
    32 #undef GST_PDE4M_PG_MASK
     32#undef GST_PDE_BIG_PG_MASK
    3333#undef GST_PD_SHIFT
    3434#undef GST_PD_MASK
     
    4949# define GST_BIG_PAGE_OFFSET_MASK   X86_PAGE_4M_OFFSET_MASK
    5050# define GST_PDE_PG_MASK            X86_PDE_PG_MASK
    51 # define GST_PDE4M_PG_MASK          X86_PDE4M_PG_MASK
     51# define GST_PDE_BIG_PG_MASK        X86_PDE4M_PG_MASK
    5252# define GST_PD_SHIFT               X86_PD_SHIFT
    5353# define GST_PD_MASK                X86_PD_MASK
     
    6767# define GST_BIG_PAGE_OFFSET_MASK   X86_PAGE_2M_OFFSET_MASK
    6868# define GST_PDE_PG_MASK            X86_PDE_PAE_PG_MASK
    69 # define GST_PDE4M_PG_MASK          X86_PDE4M_PAE_PG_MASK
     69# define GST_PDE_BIG_PG_MASK        X86_PDE2M_PAE_PG_MASK
    7070# define GST_PD_SHIFT               X86_PD_PAE_SHIFT
    7171# define GST_PD_MASK                X86_PD_PAE_MASK
  • trunk/src/VBox/VMM/PGMMap.cpp

    r7629 r7657  
    465465 *
    466466 * @remark  This API shall not be used to anything but mapping the switcher code.
    467  */
     467z */
    468468PGMR3DECL(int) PGMR3MapIntermediate(PVM pVM, RTUINTPTR Addr, RTHCPHYS HCPhys, unsigned cbPages)
    469469{
     
    734734        return;
    735735
     736    Assert(PGMGetGuestMode(pVM) <= PGMMODE_32_BIT);
     737
    736738    /*
    737739     * Init the page tables and insert them into the page directories.
     
    954956    if (pVM->pgm.s.fMappingsFixed)
    955957        return false;
     958
     959    Assert(PGMGetGuestMode(pVM) <= PGMMODE_32_BIT);
    956960
    957961    /*
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r7656 r7657  
    242242        if (    PdeSrc.b.u1Size
    243243            &&  (cr4 & X86_CR4_PSE))
    244             GCPhys = (PdeSrc.u & GST_PDE4M_PG_MASK)
     244            GCPhys = (PdeSrc.u & GST_PDE_BIG_PG_MASK)
    245245                    | ((RTGCPHYS)pvFault & (GST_BIG_PAGE_OFFSET_MASK ^ PAGE_OFFSET_MASK));
    246246        else
     
    908908            /* Before freeing the page, check if anything really changed. */
    909909            PPGMPOOLPAGE    pShwPage = pgmPoolGetPageByHCPhys(pVM, PdeDst.u & SHW_PDE_PG_MASK);
    910             RTGCPHYS        GCPhys   = PdeSrc.u & GST_PDE4M_PG_MASK;
     910            RTGCPHYS        GCPhys   = PdeSrc.u & GST_PDE_BIG_PG_MASK;
    911911#  if PGM_SHW_TYPE != PGM_TYPE_32BIT
    912912            GCPhys |= GCPtrPage & (1 << X86_PD_PAE_SHIFT);
     
    12731273    else
    12741274    {
    1275         GCPhys = PdeSrc.u & GST_PDE4M_PG_MASK;
     1275        GCPhys = PdeSrc.u & GST_PDE_BIG_PG_MASK;
    12761276# if PGM_SHW_TYPE != PGM_TYPE_32BIT
    12771277        GCPhys |= GCPtrPage & X86_PAGE_2M_SIZE;
     
    13881388                 */
    13891389                /* Calculate the GC physical address of this 4KB shadow page. */
    1390                 RTGCPHYS GCPhys = (PdeSrc.u & GST_PDE4M_PG_MASK) | ((RTGCUINTPTR)GCPtrPage & GST_BIG_PAGE_OFFSET_MASK);
     1390                RTGCPHYS GCPhys = (PdeSrc.u & GST_PDE_BIG_PG_MASK) | ((RTGCUINTPTR)GCPtrPage & GST_BIG_PAGE_OFFSET_MASK);
    13911391                /* Find ram range. */
    13921392                PPGMPAGE pPage;
     
    19081908        else
    19091909        {
    1910             GCPhys = PdeSrc.u & GST_PDE4M_PG_MASK;
     1910            GCPhys = PdeSrc.u & GST_PDE_BIG_PG_MASK;
    19111911# if PGM_SHW_TYPE == PGM_TYPE_PAE && PGM_GST_TYPE == PGM_TYPE_32BIT
    19121912            GCPhys |= GCPtrPage & RT_BIT(X86_PAGE_2M_SHIFT);
     
    26662666                    else
    26672667                    {
    2668                         GCPhys = PdeSrc.u & GST_PDE4M_PG_MASK;
     2668                        GCPhys = PdeSrc.u & GST_PDE_BIG_PG_MASK;
    26692669#  if PGM_SHW_TYPE == PGM_TYPE_PAE && PGM_GST_TYPE == PGM_TYPE_32BIT
    26702670                        GCPhys |= i * X86_PAGE_2M_SIZE;
     
    29962996                    continue;
    29972997                }
    2998                 GCPhysGst = PdeSrc.u & GST_PDE4M_PG_MASK;
     2998                GCPhysGst = PdeSrc.u & GST_PDE_BIG_PG_MASK;
    29992999# if PGM_SHW_TYPE == PGM_TYPE_PAE && PGM_GST_TYPE == PGM_TYPE_32BIT
    30003000                GCPhysGst |= GCPtr & RT_BIT(X86_PAGE_2M_SHIFT);
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r7655 r7657  
    3131#undef GST_BIG_PAGE_OFFSET_MASK
    3232#undef GST_PDE_PG_MASK
    33 #undef GST_PDE4M_PG_MASK
     33#undef GST_PDE_BIG_PG_MASK
    3434#undef GST_PD_SHIFT
    3535#undef GST_PD_MASK
     
    5252# define GST_BIG_PAGE_OFFSET_MASK   X86_PAGE_4M_OFFSET_MASK
    5353# define GST_PDE_PG_MASK            X86_PDE_PG_MASK
    54 # define GST_PDE4M_PG_MASK          X86_PDE4M_PG_MASK
     54# define GST_PDE_BIG_PG_MASK        X86_PDE4M_PG_MASK
    5555# define GST_PD_SHIFT               X86_PD_SHIFT
    5656# define GST_PD_MASK                X86_PD_MASK
     
    7272# define GST_BIG_PAGE_OFFSET_MASK   X86_PAGE_2M_OFFSET_MASK
    7373# define GST_PDE_PG_MASK            X86_PDE_PAE_PG_MASK
    74 # define GST_PDE4M_PG_MASK          X86_PDE2M_PAE_PG_MASK
     74# define GST_PDE_BIG_PG_MASK        X86_PDE2M_PAE_PG_MASK
    7575# define GST_PD_SHIFT               X86_PD_PAE_SHIFT
    7676# define GST_PD_MASK                X86_PD_PAE_MASK
     
    203203                     | ((Pde.u & X86_PDE4M_PAT) >> X86_PDE4M_PAT_SHIFT);
    204204        if (pGCPhys)
    205             *pGCPhys = (Pde.u & GST_PDE4M_PG_MASK) | (GCPtr & (~GST_PDE4M_PG_MASK ^ ~GST_PTE_PG_MASK)); /** @todo pse36 */
     205            *pGCPhys = (Pde.u & GST_PDE_BIG_PG_MASK) | (GCPtr & (~GST_PDE_BIG_PG_MASK ^ ~GST_PTE_PG_MASK)); /** @todo pse36 */
    206206    }
    207207    return VINF_SUCCESS;
     
    289289             * 4MB Page table
    290290             */
    291             Pde.u = (Pde.u & (fMask | ((fMask & X86_PTE_PAT) << X86_PDE4M_PAT_SHIFT) | GST_PDE4M_PG_MASK | X86_PDE4M_PS)) /** @todo pse36 */
     291            Pde.u = (Pde.u & (fMask | ((fMask & X86_PTE_PAT) << X86_PDE4M_PAT_SHIFT) | GST_PDE_BIG_PG_MASK | X86_PDE4M_PS)) /** @todo pse36 */
    292292                  | (fFlags & ~GST_PTE_PG_MASK)
    293293                  | ((fFlags & X86_PTE_PAT) << X86_PDE4M_PAT_SHIFT);
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