- Timestamp:
- Nov 4, 2008 10:46:38 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vm.h
r13796 r13815 493 493 * @remark Assume interrupts disabled. 494 494 */ 495 RT GCPTR32pfnVMMGCGuestToHostAsmGuestCtx/*(int32_t eax, CPUMCTXCORE Ctx)*/;495 RTRCPTR pfnVMMGCGuestToHostAsmGuestCtx/*(int32_t eax, CPUMCTXCORE Ctx)*/; 496 496 497 497 /** … … 508 508 * @remark Assume interrupts disabled. 509 509 */ 510 RT GCPTR32pfnVMMGCGuestToHostAsmHyperCtx/*(int32_t eax, PCPUMCTXCORE ecx)*/;510 RTRCPTR pfnVMMGCGuestToHostAsmHyperCtx/*(int32_t eax, PCPUMCTXCORE ecx)*/; 511 511 512 512 /** … … 520 520 * @remark Assume interrupts disabled. 521 521 */ 522 RT GCPTR32pfnVMMGCGuestToHostAsm/*(int32_t eax)*/;522 RTRCPTR pfnVMMGCGuestToHostAsm/*(int32_t eax)*/; 523 523 /** @} */ 524 524 -
trunk/include/VBox/vm.mac
r13791 r13815 62 62 .u32Reserved resd 5 63 63 64 .pfnVMMGCGuestToHostAsmGuestCtx RT GCPTR32_RES 165 .pfnVMMGCGuestToHostAsmHyperCtx RT GCPTR32_RES 166 .pfnVMMGCGuestToHostAsm RT GCPTR32_RES 164 .pfnVMMGCGuestToHostAsmGuestCtx RTRCPTR_RES 1 65 .pfnVMMGCGuestToHostAsmHyperCtx RTRCPTR_RES 1 66 .pfnVMMGCGuestToHostAsm RTRCPTR_RES 1 67 67 68 68 .uPadding1 RTHCPTR_RES 1 -
trunk/src/VBox/VMM/MMHyper.cpp
r13796 r13815 110 110 if (VBOX_SUCCESS(rc)) 111 111 { 112 pVM->pVMRC = (RT GCPTR32)GCPtr;112 pVM->pVMRC = (RTRCPTR)GCPtr; 113 113 pVM->pVMGC = pVM->pVMRC; 114 114 for (uint32_t i = 0; i < pVM->cCPUs; i++) -
trunk/src/VBox/VMM/PDMDevHlp.cpp
r13594 r13815 91 91 && (pDevIns->pDevReg->fFlags & PDM_DEVREG_FLAGS_RC)) 92 92 { 93 RT GCPTR32 GCPtrIn = 0;93 RTRCPTR RCPtrIn = NIL_RTRCPTR; 94 94 if (pszIn) 95 95 { 96 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszIn, & GCPtrIn);96 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszIn, &RCPtrIn); 97 97 AssertMsgRC(rc, ("Failed to resolve %s.%s (pszIn)\n", pDevIns->pDevReg->szRCMod, pszIn)); 98 98 } 99 RT GCPTR32 GCPtrOut = 0;99 RTRCPTR RCPtrOut = NIL_RTRCPTR; 100 100 if (pszOut && VBOX_SUCCESS(rc)) 101 101 { 102 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszOut, & GCPtrOut);102 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszOut, &RCPtrOut); 103 103 AssertMsgRC(rc, ("Failed to resolve %s.%s (pszOut)\n", pDevIns->pDevReg->szRCMod, pszOut)); 104 104 } 105 RT GCPTR32 GCPtrInStr = 0;105 RTRCPTR RCPtrInStr = NIL_RTRCPTR; 106 106 if (pszInStr && VBOX_SUCCESS(rc)) 107 107 { 108 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszInStr, & GCPtrInStr);108 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszInStr, &RCPtrInStr); 109 109 AssertMsgRC(rc, ("Failed to resolve %s.%s (pszInStr)\n", pDevIns->pDevReg->szRCMod, pszInStr)); 110 110 } 111 RT GCPTR32 GCPtrOutStr = 0;111 RTRCPTR RCPtrOutStr = NIL_RTRCPTR; 112 112 if (pszOutStr && VBOX_SUCCESS(rc)) 113 113 { 114 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszOutStr, & GCPtrOutStr);114 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszOutStr, &RCPtrOutStr); 115 115 AssertMsgRC(rc, ("Failed to resolve %s.%s (pszOutStr)\n", pDevIns->pDevReg->szRCMod, pszOutStr)); 116 116 } 117 117 118 118 if (VBOX_SUCCESS(rc)) 119 rc = IOMR3IOPortRegisterRC(pDevIns->Internal.s.pVMR3, pDevIns, Port, cPorts, pvUser, GCPtrOut, GCPtrIn, GCPtrOutStr, GCPtrInStr, pszDesc);119 rc = IOMR3IOPortRegisterRC(pDevIns->Internal.s.pVMR3, pDevIns, Port, cPorts, pvUser, RCPtrOut, RCPtrIn, RCPtrOutStr, RCPtrInStr, pszDesc); 120 120 } 121 121 else … … 236 236 && (pDevIns->pDevReg->fFlags & PDM_DEVREG_FLAGS_RC)) 237 237 { 238 RT GCPTR32 GCPtrWrite = 0;238 RTRCPTR RCPtrWrite = NIL_RTRCPTR; 239 239 if (pszWrite) 240 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszWrite, &GCPtrWrite); 241 RTGCPTR32 GCPtrRead = 0; 240 rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszWrite, &RCPtrWrite); 241 242 RTRCPTR RCPtrRead = NIL_RTRCPTR; 242 243 int rc2 = VINF_SUCCESS; 243 244 if (pszRead) 244 rc2 = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszRead, &GCPtrRead); 245 RTGCPTR32 GCPtrFill = 0; 245 rc2 = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszRead, &RCPtrRead); 246 247 RTRCPTR RCPtrFill = NIL_RTRCPTR; 246 248 int rc3 = VINF_SUCCESS; 247 249 if (pszFill) 248 rc3 = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszFill, &GCPtrFill); 250 rc3 = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszFill, &RCPtrFill); 251 249 252 if (VBOX_SUCCESS(rc) && VBOX_SUCCESS(rc2) && VBOX_SUCCESS(rc3)) 250 rc = IOMR3MMIORegisterRC(pDevIns->Internal.s.pVMR3, pDevIns, GCPhysStart, cbRange, pvUser, GCPtrWrite, GCPtrRead, GCPtrFill);253 rc = IOMR3MMIORegisterRC(pDevIns->Internal.s.pVMR3, pDevIns, GCPhysStart, cbRange, pvUser, RCPtrWrite, RCPtrRead, RCPtrFill); 251 254 else 252 255 { -
trunk/src/VBox/VMM/PDMLdr.cpp
r13714 r13815 756 756 * @param pRCPtrValue Where to store the symbol value. 757 757 */ 758 VMMR3DECL(int) PDMR3LdrGetSymbolRC(PVM pVM, const char *pszModule, const char *pszSymbol, PRT GCPTR32pRCPtrValue)758 VMMR3DECL(int) PDMR3LdrGetSymbolRC(PVM pVM, const char *pszModule, const char *pszSymbol, PRTRCPTR pRCPtrValue) 759 759 { 760 760 #ifdef PDMLDR_FAKE_MODE … … 812 812 * @param pRCPtrValue Where to store the symbol value. 813 813 */ 814 VMMR3DECL(int) PDMR3LdrGetSymbolRCLazy(PVM pVM, const char *pszModule, const char *pszSymbol, PRT GCPTR32pRCPtrValue)814 VMMR3DECL(int) PDMR3LdrGetSymbolRCLazy(PVM pVM, const char *pszModule, const char *pszSymbol, PRTRCPTR pRCPtrValue) 815 815 { 816 816 #ifdef PDMLDR_FAKE_MODE -
trunk/src/VBox/VMM/PGMHandler.cpp
r13236 r13815 249 249 * Resolve the GC handler. 250 250 */ 251 RT GCPTR32 pfnHandlerGC;252 int rc = PDMR3LdrGetSymbolRCLazy(pVM, pszModRC, pszHandlerRC, &pfnHandler GC);251 RTRCPTR pfnHandlerRC; 252 int rc = PDMR3LdrGetSymbolRCLazy(pVM, pszModRC, pszHandlerRC, &pfnHandlerRC); 253 253 if (VBOX_SUCCESS(rc)) 254 return PGMR3HandlerVirtualRegisterEx(pVM, enmType, GCPtr, GCPtrLast, pfnInvalidateR3, pfnHandlerR3, pfnHandler GC, pszDesc);254 return PGMR3HandlerVirtualRegisterEx(pVM, enmType, GCPtr, GCPtrLast, pfnInvalidateR3, pfnHandlerR3, pfnHandlerRC, pszDesc); 255 255 256 256 AssertMsgFailed(("Failed to resolve %s.%s, rc=%Vrc.\n", pszModRC, pszHandlerRC, rc)); -
trunk/src/VBox/VMM/VMM.cpp
r13813 r13815 496 496 * -# do a generic hypervisor call. 497 497 */ 498 RT GCPTR32 GCPtrEP;499 int rc = PDMR3LdrGetSymbolRC(pVM, VMMGC_MAIN_MODULE_NAME, "VMMGCEntry", & GCPtrEP);498 RTRCPTR RCPtrEP; 499 int rc = PDMR3LdrGetSymbolRC(pVM, VMMGC_MAIN_MODULE_NAME, "VMMGCEntry", &RCPtrEP); 500 500 if (VBOX_SUCCESS(rc)) 501 501 { … … 508 508 CPUMPushHyper(pVM, VMMGC_DO_VMMGC_INIT); /* Param 1: Operation. */ 509 509 CPUMPushHyper(pVM, pVM->pVMRC); /* Param 0: pVM */ 510 CPUMPushHyper(pVM, 3 * sizeof(RT GCPTR32));/* trampoline param: stacksize. */511 CPUMPushHyper(pVM, GCPtrEP); /* Call EIP. */510 CPUMPushHyper(pVM, 3 * sizeof(RTRCPTR)); /* trampoline param: stacksize. */ 511 CPUMPushHyper(pVM, RCPtrEP); /* Call EIP. */ 512 512 CPUMSetHyperEIP(pVM, pVM->vmm.s.pfnCallTrampolineRC); 513 513
Note:
See TracChangeset
for help on using the changeset viewer.