VirtualBox

Ignore:
Timestamp:
Aug 27, 2010 10:14:39 AM (14 years ago)
Author:
vboxsync
Message:

Removed X86_PTE_PAE_PG_MASK, renamed X86_PTE_PAE_PG_MASK_FULL to X86_PTE_PAE_PG_MASK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r31996 r32036  
    145145    pNew->Core.KeyLast  = GCPhysLast;
    146146    pNew->enmType       = enmType;
    147     pNew->cPages        = (GCPhysLast - (GCPhys & X86_PTE_PAE_PG_MASK_FULL) + PAGE_SIZE) >> PAGE_SHIFT;
     147    pNew->cPages        = (GCPhysLast - (GCPhys & X86_PTE_PAE_PG_MASK) + PAGE_SIZE) >> PAGE_SHIFT;
    148148    pNew->pfnHandlerR3  = pfnHandlerR3;
    149149    pNew->pvUserR3      = pvUserR3;
     
    307307                &&  PGM_PAGE_GET_HNDL_PHYS_STATE(pPage) != PGM_PAGE_HNDL_PHYS_STATE_NONE)
    308308            {
    309                 RTGCPHYS GCPhys = (GCPhysStart + (PAGE_SIZE - 1)) & X86_PTE_PAE_PG_MASK_FULL;
     309                RTGCPHYS GCPhys = (GCPhysStart + (PAGE_SIZE - 1)) & X86_PTE_PAE_PG_MASK;
    310310                if (    GCPhys > GCPhysLast
    311311                    ||  GCPhys < GCPhysStart)
     
    314314            }
    315315            else
    316                 GCPhysStart &= X86_PTE_PAE_PG_MASK_FULL;
     316                GCPhysStart &= X86_PTE_PAE_PG_MASK;
    317317            Assert(!pPage || PGM_PAGE_GET_TYPE(pPage) != PGMPAGETYPE_MMIO); /* these are page aligned atm! */
    318318        }
     
    324324                &&  PGM_PAGE_GET_HNDL_PHYS_STATE(pPage) != PGM_PAGE_HNDL_PHYS_STATE_NONE)
    325325            {
    326                 RTGCPHYS GCPhys = (GCPhysLast & X86_PTE_PAE_PG_MASK_FULL) - 1;
     326                RTGCPHYS GCPhys = (GCPhysLast & X86_PTE_PAE_PG_MASK) - 1;
    327327                if (    GCPhys < GCPhysStart
    328328                    ||  GCPhys > GCPhysLast)
     
    536536                pCur->Core.Key      = GCPhys;
    537537                pCur->Core.KeyLast  = GCPhysLast;
    538                 pCur->cPages        = (GCPhysLast - (GCPhys & X86_PTE_PAE_PG_MASK_FULL) + 1) >> PAGE_SHIFT;
     538                pCur->cPages        = (GCPhysLast - (GCPhys & X86_PTE_PAE_PG_MASK) + 1) >> PAGE_SHIFT;
    539539
    540540                if (RTAvlroGCPhysInsert(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, &pCur->Core))
     
    684684            *pNew = *pCur;
    685685            pNew->Core.Key      = GCPhysSplit;
    686             pNew->cPages        = (pNew->Core.KeyLast - (pNew->Core.Key & X86_PTE_PAE_PG_MASK_FULL) + PAGE_SIZE) >> PAGE_SHIFT;
     686            pNew->cPages        = (pNew->Core.KeyLast - (pNew->Core.Key & X86_PTE_PAE_PG_MASK) + PAGE_SIZE) >> PAGE_SHIFT;
    687687
    688688            pCur->Core.KeyLast  = GCPhysSplit - 1;
    689             pCur->cPages        = (pCur->Core.KeyLast - (pCur->Core.Key & X86_PTE_PAE_PG_MASK_FULL) + PAGE_SIZE) >> PAGE_SHIFT;
     689            pCur->cPages        = (pCur->Core.KeyLast - (pCur->Core.Key & X86_PTE_PAE_PG_MASK) + PAGE_SIZE) >> PAGE_SHIFT;
    690690
    691691            if (RT_LIKELY(RTAvlroGCPhysInsert(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, &pNew->Core)))
     
    750750                    {
    751751                        pCur1->Core.KeyLast  = pCur2->Core.KeyLast;
    752                         pCur1->cPages        = (pCur1->Core.KeyLast - (pCur1->Core.Key & X86_PTE_PAE_PG_MASK_FULL) + PAGE_SIZE) >> PAGE_SHIFT;
     752                        pCur1->cPages        = (pCur1->Core.KeyLast - (pCur1->Core.Key & X86_PTE_PAE_PG_MASK) + PAGE_SIZE) >> PAGE_SHIFT;
    753753                        LogFlow(("PGMHandlerPhysicalJoin: %RGp-%RGp %RGp-%RGp\n",
    754754                                 pCur1->Core.Key, pCur1->Core.KeyLast, pCur2->Core.Key, pCur2->Core.KeyLast));
     
    14811481    for (unsigned iPage = 0; iPage < pCur->cPages; iPage++)
    14821482    {
    1483         if ((pCur->aPhysToVirt[iPage].Core.Key & X86_PTE_PAE_PG_MASK_FULL) == pState->GCPhys)
     1483        if ((pCur->aPhysToVirt[iPage].Core.Key & X86_PTE_PAE_PG_MASK) == pState->GCPhys)
    14841484        {
    14851485            unsigned uState = pgmHandlerVirtualCalcState(pCur);
     
    15741574
    15751575            AssertRCReturn(rc, 0);
    1576             if ((pVirt->aPhysToVirt[iPage].Core.Key & X86_PTE_PAE_PG_MASK_FULL) != GCPhysGst)
     1576            if ((pVirt->aPhysToVirt[iPage].Core.Key & X86_PTE_PAE_PG_MASK) != GCPhysGst)
    15771577            {
    15781578                AssertMsgFailed(("virt handler phys out of sync. %RGp GCPhysGst=%RGp iPage=%#x %RGv %s\n",
     
    17131713                                                                                                        GCPhysKey, true /* above-or-equal */);
    17141714                        if (    !pPhys2Virt
    1715                             ||  (pPhys2Virt->Core.Key & X86_PTE_PAE_PG_MASK_FULL) != State.GCPhys)
     1715                            ||  (pPhys2Virt->Core.Key & X86_PTE_PAE_PG_MASK) != State.GCPhys)
    17161716                            break;
    17171717
     
    17321732
    17331733                        /* done? */
    1734                         if ((GCPhysKey & X86_PTE_PAE_PG_MASK_FULL) != State.GCPhys)
     1734                        if ((GCPhysKey & X86_PTE_PAE_PG_MASK) != State.GCPhys)
    17351735                            break;
    17361736                    }
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