vbox的更動 9212 路徑 trunk/src/VBox/VMM/VMMAll/MMAll.cpp
- 時間撮記:
- 2008-5-29 上午09:38:38 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/MMAll.cpp
r8155 r9212 174 174 { 175 175 #ifdef IN_GC 176 return mmHyperLookupGC(pVM, pv, poff);176 return mmHyperLookupGC(pVM, (RTGCPTR)pv, poff); 177 177 #elif defined(IN_RING0) 178 178 return mmHyperLookupR0(pVM, pv, poff); … … 254 254 { 255 255 #ifdef IN_GC 256 return mmHyperLookupCalcGC(pVM, pLookup, off);256 return (void *)mmHyperLookupCalcGC(pVM, pLookup, off); 257 257 #elif defined(IN_RING0) 258 258 return mmHyperLookupCalcR0(pLookup, off); … … 494 494 */ 495 495 #ifndef IN_GC 496 MMDECL(R TGCPTR) MMHyperCCToGC(PVM pVM, void *pv)496 MMDECL(RCPTRTYPE(void *)) MMHyperCCToGC(PVM pVM, void *pv) 497 497 { 498 498 uint32_t off; … … 516 516 * @deprecated 517 517 */ 518 MMDECL(R TGCPTR) MMHyperHC2GC(PVM pVM, RTHCPTR HCPtr)518 MMDECL(RCPTRTYPE(void *)) MMHyperHC2GC(PVM pVM, RTHCPTR HCPtr) 519 519 { 520 520 PMMLOOKUPHYPER pLookup = (PMMLOOKUPHYPER)((char*)CTXSUFF(pVM->mm.s.pHyperHeap) + pVM->mm.s.offLookupHyper); … … 527 527 unsigned off = (RTHCUINTPTR)HCPtr - (RTHCUINTPTR)pLookup->u.Locked.pvHC; 528 528 if (off < pLookup->cb) 529 return (R TGCPTR)((RTGCUINTPTR)pVM->mm.s.pvHyperAreaGC + pLookup->off + off);529 return (RCPTRTYPE(void *))((RTGCUINTPTR)pVM->mm.s.pvHyperAreaGC + pLookup->off + off); 530 530 break; 531 531 } … … 535 535 unsigned off = (RTHCUINTPTR)HCPtr - (RTHCUINTPTR)pLookup->u.HCPhys.pvHC; 536 536 if (off < pLookup->cb) 537 return (R TGCPTR)((RTGCUINTPTR)pVM->mm.s.pvHyperAreaGC + pLookup->off + off);537 return (RCPTRTYPE(void *))((RTGCUINTPTR)pVM->mm.s.pvHyperAreaGC + pLookup->off + off); 538 538 break; 539 539 } … … 556 556 557 557 AssertMsgFailed(("HCPtr=%p is not inside the hypervisor memory area!\n", HCPtr)); 558 return (R TGCPTR)0;558 return (RCPTRTYPE(void *))0; 559 559 } 560 560 … … 570 570 * @deprecated 571 571 */ 572 MMDECL(RTHCPTR) MMHyperGC2HC(PVM pVM, R TGCPTRGCPtr)572 MMDECL(RTHCPTR) MMHyperGC2HC(PVM pVM, RCPTRTYPE(void *) GCPtr) 573 573 { 574 574 unsigned offGC = (RTGCUINTPTR)GCPtr - (RTGCUINTPTR)pVM->mm.s.pvHyperAreaGC; … … 615 615 MMDECL(RTHCPTR) MMHyper2HC(PVM pVM, uintptr_t Ptr) 616 616 { 617 return MMHyperGC2HC(pVM, (R TGCPTR)Ptr);617 return MMHyperGC2HC(pVM, (RCPTRTYPE(void *))Ptr); 618 618 } 619 619 … … 630 630 * @deprecated 631 631 */ 632 MMDECL(R TGCPTR) MMHyper2GC(PVM pVM, uintptr_t Ptr)632 MMDECL(RCPTRTYPE(void *)) MMHyper2GC(PVM pVM, uintptr_t Ptr) 633 633 { 634 634 return MMHyperHC2GC(pVM, (RTHCPTR)Ptr);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器