VirtualBox

Changeset 7740 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 4, 2008 1:18:03 PM (17 years ago)
Author:
vboxsync
Message:

PAE update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r7733 r7740  
    395395    RTHCPHYS    HCPhysGuestCR3;
    396396    RTHCPTR     HCPtrGuestCR3;
    397     int rc = pgmRamGCPhys2HCPtrAndHCPhysWithFlags(&pVM->pgm.s, GCPhysCR3, &HCPtrGuestCR3, &HCPhysGuestCR3);
     397    int rc = pgmRamGCPhys2HCPtrAndHCPhysWithFlags(&pVM->pgm.s, GCPhysCR3 & GST_CR3_PAGE_MASK, &HCPtrGuestCR3, &HCPhysGuestCR3);
    398398    if (VBOX_SUCCESS(rc))
    399399    {
    400         rc = PGMMap(pVM, (RTGCUINTPTR)pVM->pgm.s.GCPtrCR3Mapping, HCPhysGuestCR3 & X86_PTE_PAE_PG_MASK, PAGE_SIZE, 0);
     400        rc = PGMMap(pVM, (RTGCUINTPTR)pVM->pgm.s.GCPtrCR3Mapping, HCPhysGuestCR3, PAGE_SIZE, 0);
    401401        if (VBOX_SUCCESS(rc))
    402402        {
     
    407407
    408408#elif PGM_GST_TYPE == PGM_TYPE_PAE
    409             const unsigned off = GCPhysCR3 & X86_CR3_PAE_PAGE_MASK;
    410             pVM->pgm.s.pGstPaePDPTHC = (R3R0PTRTYPE(PX86PDPT))((RTHCUINTPTR)HCPtrGuestCR3 | off);
    411             pVM->pgm.s.pGstPaePDPTGC = (GCPTRTYPE(PX86PDPT))((RTGCUINTPTR)pVM->pgm.s.GCPtrCR3Mapping | off);
     409            pVM->pgm.s.pGstPaePDPTHC = (R3R0PTRTYPE(PX86PDPT))HCPtrGuestCR3;
     410            pVM->pgm.s.pGstPaePDPTGC = (GCPTRTYPE(PX86PDPT))pVM->pgm.s.GCPtrCR3Mapping;
    412411
    413412            /*
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