- Timestamp:
- Sep 29, 2008 12:51:37 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 37139
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/MMHyper.cpp
r12792 r12794 104 104 if (VBOX_SUCCESS(rc)) 105 105 { 106 pVM->pVMGC = (RTGCPTR32)GCPtr; 106 pVM->pVMRC = (RTGCPTR32)GCPtr; 107 pVM->pVMGC = pVM->pVMRC; 107 108 for (uint32_t i = 0; i < pVM->cCPUs; i++) 108 pVM->aCpus[i].pVMRC = pVM->pVM GC;109 pVM->aCpus[i].pVMRC = pVM->pVMRC; 109 110 110 111 /* Reserve a page for fencing. */ … … 281 282 */ 282 283 RTGCINTPTR offDelta = GCPtrNew - GCPtrOld; 283 pVM->pVMGC += offDelta; 284 pVM->pVMRC += offDelta; 285 pVM->pVMGC = pVM->pVMRC; 284 286 for (uint32_t i = 0; i < pVM->cCPUs; i++) 285 pVM->aCpus[i].pVMRC = pVM->pVMGC;287 pVM->aCpus[i].pVMRC = pVM->pVMRC; 286 288 287 289 pVM->mm.s.pvHyperAreaGC += offDelta; 288 290 pVM->mm.s.pHyperHeapGC += offDelta; 289 291 pVM->mm.s.pHyperHeapHC->pbHeapRC += offDelta; 290 pVM->mm.s.pHyperHeapHC->pVMRC = pVM->pVM GC;292 pVM->mm.s.pHyperHeapHC->pVMRC = pVM->pVMRC; 291 293 292 294 /* … … 787 789 pHeap->pVMR3 = pVM; 788 790 pHeap->pVMR0 = pVM->pVMR0; 789 pHeap->pVMRC = pVM->pVM GC;791 pHeap->pVMRC = pVM->pVMRC; 790 792 pHeap->cbHeap = cbAligned - MMYPERHEAP_HDR_SIZE; 791 793 pHeap->cbFree = pHeap->cbHeap - sizeof(MMHYPERCHUNK); … … 824 826 if (VBOX_SUCCESS(rc)) 825 827 { 826 pHeap->pVMRC = pVM->pVM GC;828 pHeap->pVMRC = pVM->pVMRC; 827 829 pHeap->pbHeapRC = *ppHeapGC + MMYPERHEAP_HDR_SIZE; 828 830 /* Reserve a page for fencing. */
Note:
See TracChangeset
for help on using the changeset viewer.