Changeset 14755 in vbox for trunk/src/VBox/VMM/PATM
- Timestamp:
- Nov 28, 2008 2:58:01 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40070
- Location:
- trunk/src/VBox/VMM/PATM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/CSAM.cpp
r14075 r14755 578 578 } 579 579 580 rc = PGMPhysGCPtr2 HCPtr(pVM, pGCPtr, &pHCPtr);580 rc = PGMPhysGCPtr2R3Ptr(pVM, pGCPtr, &pHCPtr); 581 581 if (rc != VINF_SUCCESS) 582 582 { … … 1279 1279 Log(("Jump through jump table\n")); 1280 1280 1281 rc2 = PGMPhysGCPtr2 HCPtr(pVM, pJumpTableGC, (PRTHCPTR)&pJumpTableHC);1281 rc2 = PGMPhysGCPtr2R3Ptr(pVM, pJumpTableGC, (PRTHCPTR)&pJumpTableHC); 1282 1282 if (rc2 == VINF_SUCCESS) 1283 1283 { … … 2328 2328 if (PAGE_ADDRESS(GCPtrIDT) == PAGE_ADDRESS(GCPtrIDT+cGates*sizeof(VBOXIDTE))) 2329 2329 { 2330 /* Just convert the IDT address to a HCpointer. The whole IDT fits in one page. */2331 rc = PGMPhysGCPtr2 HCPtr(pVM, GCPtrIDT, (PRTHCPTR)&pGuestIdte);2330 /* Just convert the IDT address to a R3 pointer. The whole IDT fits in one page. */ 2331 rc = PGMPhysGCPtr2R3Ptr(pVM, GCPtrIDT, (PRTR3PTR)&pGuestIdte); 2332 2332 if (RT_FAILURE(rc)) 2333 2333 { -
trunk/src/VBox/VMM/PATM/PATM.cpp
r13960 r14755 604 604 { 605 605 /** @note pPrivInstrHC is probably not valid anymore */ 606 rc = PGMPhysGCPtr2 HCPtr(pVM, pPatch->patch.pPrivInstrGC, (PRTHCPTR)&pPatch->patch.pPrivInstrHC);606 rc = PGMPhysGCPtr2R3Ptr(pVM, pPatch->patch.pPrivInstrGC, (PRTR3PTR)&pPatch->patch.pPrivInstrHC); 607 607 if (rc == VINF_SUCCESS) 608 608 { … … 790 790 { 791 791 /** @note pPrivInstrHC is probably not valid anymore */ 792 rc = PGMPhysGCPtr2 HCPtr(pVM, pPatch->patch.pPrivInstrGC, (PRTHCPTR)&pPatch->patch.pPrivInstrHC);792 rc = PGMPhysGCPtr2R3Ptr(pVM, pPatch->patch.pPrivInstrGC, (PRTR3PTR)&pPatch->patch.pPrivInstrHC); 793 793 if (rc == VINF_SUCCESS) 794 794 { … … 995 995 } 996 996 997 rc = PGMPhysGCPtr2 HCPtr(pVM, pGCPtr, (void **)&pHCPtr);997 rc = PGMPhysGCPtr2R3Ptr(pVM, pGCPtr, (void **)&pHCPtr); 998 998 if (rc != VINF_SUCCESS) 999 999 { … … 4121 4121 } 4122 4122 GCPhys = GCPhys + (pInstrGC & PAGE_OFFSET_MASK); 4123 rc = PGMPhysGCPhys2 HCPtr(pVM, GCPhys, MAX_INSTR_SIZE, (void **)&pInstrHC);4123 rc = PGMPhysGCPhys2R3Ptr(pVM, GCPhys, MAX_INSTR_SIZE, (void **)&pInstrHC); 4124 4124 AssertRCReturn(rc, rc); 4125 4125 … … 4402 4402 uint8_t *pInstrHC; 4403 4403 4404 int rc = PGMPhysGCPtr2 HCPtr(pVM, pInstrGC, (RTHCPTR *)&pInstrHC);4404 int rc = PGMPhysGCPtr2R3Ptr(pVM, pInstrGC, (PRTR3PTR)&pInstrHC); 4405 4405 if (rc == VINF_SUCCESS) 4406 4406 { … … 4999 4999 5000 5000 /** pPrivInstrHC is probably not valid anymore */ 5001 rc = PGMPhysGCPtr2 HCPtr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTHCPTR)&pPatchRec->patch.pPrivInstrHC);5001 rc = PGMPhysGCPtr2R3Ptr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTR3PTR)&pPatchRec->patch.pPrivInstrHC); 5002 5002 if (rc == VINF_SUCCESS) 5003 5003 { … … 5218 5218 Assert(!(pPatch->flags & PATMFL_PATCHED_GUEST_CODE)); 5219 5219 /** @todo -> pPrivInstrHC is probably not valid anymore */ 5220 rc = PGMPhysGCPtr2 HCPtr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTHCPTR)&pPatchRec->patch.pPrivInstrHC);5220 rc = PGMPhysGCPtr2R3Ptr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTR3PTR)&pPatchRec->patch.pPrivInstrHC); 5221 5221 if (rc == VINF_SUCCESS) 5222 5222 { -
trunk/src/VBox/VMM/PATM/PATMSSM.cpp
r13830 r14755 582 582 pPatchRec->patch.pPrivInstrHC = 0; 583 583 /* The GC virtual ptr is fixed, but we must convert it manually again to HC. */ 584 rc = PGMPhysGCPtr2 HCPtr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTHCPTR)&pPatchRec->patch.pPrivInstrHC);584 rc = PGMPhysGCPtr2R3Ptr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTR3PTR)&pPatchRec->patch.pPrivInstrHC); 585 585 /* Can fail due to page or page table not present. */ 586 586
Note:
See TracChangeset
for help on using the changeset viewer.