Changeset 7740 in vbox for trunk/src/VBox
- Timestamp:
- Apr 4, 2008 1:18:03 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllGst.h
r7733 r7740 395 395 RTHCPHYS HCPhysGuestCR3; 396 396 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); 398 398 if (VBOX_SUCCESS(rc)) 399 399 { 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); 401 401 if (VBOX_SUCCESS(rc)) 402 402 { … … 407 407 408 408 #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; 412 411 413 412 /*
Note:
See TracChangeset
for help on using the changeset viewer.