VirtualBox

Changeset 13815 in vbox for trunk


Ignore:
Timestamp:
Nov 4, 2008 10:46:38 PM (16 years ago)
Author:
vboxsync
Message:

Some RTGCPTR32 cleanup.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vm.h

    r13796 r13815  
    493493     * @remark  Assume interrupts disabled.
    494494     */
    495     RTGCPTR32           pfnVMMGCGuestToHostAsmGuestCtx/*(int32_t eax, CPUMCTXCORE Ctx)*/;
     495    RTRCPTR             pfnVMMGCGuestToHostAsmGuestCtx/*(int32_t eax, CPUMCTXCORE Ctx)*/;
    496496
    497497    /**
     
    508508     * @remark  Assume interrupts disabled.
    509509     */
    510     RTGCPTR32           pfnVMMGCGuestToHostAsmHyperCtx/*(int32_t eax, PCPUMCTXCORE ecx)*/;
     510    RTRCPTR             pfnVMMGCGuestToHostAsmHyperCtx/*(int32_t eax, PCPUMCTXCORE ecx)*/;
    511511
    512512    /**
     
    520520     * @remark  Assume interrupts disabled.
    521521     */
    522     RTGCPTR32           pfnVMMGCGuestToHostAsm/*(int32_t eax)*/;
     522    RTRCPTR             pfnVMMGCGuestToHostAsm/*(int32_t eax)*/;
    523523    /** @} */
    524524
  • trunk/include/VBox/vm.mac

    r13791 r13815  
    6262    .u32Reserved        resd 5
    6363
    64     .pfnVMMGCGuestToHostAsmGuestCtx RTGCPTR32_RES 1
    65     .pfnVMMGCGuestToHostAsmHyperCtx RTGCPTR32_RES 1
    66     .pfnVMMGCGuestToHostAsm         RTGCPTR32_RES 1
     64    .pfnVMMGCGuestToHostAsmGuestCtx RTRCPTR_RES 1
     65    .pfnVMMGCGuestToHostAsmHyperCtx RTRCPTR_RES 1
     66    .pfnVMMGCGuestToHostAsm         RTRCPTR_RES 1
    6767
    6868    .uPadding1          RTHCPTR_RES 1
  • trunk/src/VBox/VMM/MMHyper.cpp

    r13796 r13815  
    110110        if (VBOX_SUCCESS(rc))
    111111        {
    112             pVM->pVMRC = (RTGCPTR32)GCPtr;
     112            pVM->pVMRC = (RTRCPTR)GCPtr;
    113113            pVM->pVMGC = pVM->pVMRC;
    114114            for (uint32_t i = 0; i < pVM->cCPUs; i++)
  • trunk/src/VBox/VMM/PDMDevHlp.cpp

    r13594 r13815  
    9191        &&  (pDevIns->pDevReg->fFlags & PDM_DEVREG_FLAGS_RC))
    9292    {
    93         RTGCPTR32 GCPtrIn = 0;
     93        RTRCPTR RCPtrIn = NIL_RTRCPTR;
    9494        if (pszIn)
    9595        {
    96             rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszIn, &GCPtrIn);
     96            rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszIn, &RCPtrIn);
    9797            AssertMsgRC(rc, ("Failed to resolve %s.%s (pszIn)\n", pDevIns->pDevReg->szRCMod, pszIn));
    9898        }
    99         RTGCPTR32 GCPtrOut = 0;
     99        RTRCPTR RCPtrOut = NIL_RTRCPTR;
    100100        if (pszOut && VBOX_SUCCESS(rc))
    101101        {
    102             rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszOut, &GCPtrOut);
     102            rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszOut, &RCPtrOut);
    103103            AssertMsgRC(rc, ("Failed to resolve %s.%s (pszOut)\n", pDevIns->pDevReg->szRCMod, pszOut));
    104104        }
    105         RTGCPTR32 GCPtrInStr = 0;
     105        RTRCPTR RCPtrInStr = NIL_RTRCPTR;
    106106        if (pszInStr && VBOX_SUCCESS(rc))
    107107        {
    108             rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszInStr, &GCPtrInStr);
     108            rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszInStr, &RCPtrInStr);
    109109            AssertMsgRC(rc, ("Failed to resolve %s.%s (pszInStr)\n", pDevIns->pDevReg->szRCMod, pszInStr));
    110110        }
    111         RTGCPTR32 GCPtrOutStr = 0;
     111        RTRCPTR RCPtrOutStr = NIL_RTRCPTR;
    112112        if (pszOutStr && VBOX_SUCCESS(rc))
    113113        {
    114             rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszOutStr, &GCPtrOutStr);
     114            rc = PDMR3LdrGetSymbolRCLazy(pDevIns->Internal.s.pVMR3, pDevIns->pDevReg->szRCMod, pszOutStr, &RCPtrOutStr);
    115115            AssertMsgRC(rc, ("Failed to resolve %s.%s (pszOutStr)\n", pDevIns->pDevReg->szRCMod, pszOutStr));
    116116        }
    117117
    118118        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);
    120120    }
    121121    else
     
    236236        &&  (pDevIns->pDevReg->fFlags & PDM_DEVREG_FLAGS_RC))
    237237    {
    238         RTGCPTR32 GCPtrWrite = 0;
     238        RTRCPTR RCPtrWrite = NIL_RTRCPTR;
    239239        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;
    242243        int rc2 = VINF_SUCCESS;
    243244        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;
    246248        int rc3 = VINF_SUCCESS;
    247249        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
    249252        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);
    251254        else
    252255        {
  • trunk/src/VBox/VMM/PDMLdr.cpp

    r13714 r13815  
    756756 * @param   pRCPtrValue     Where to store the symbol value.
    757757 */
    758 VMMR3DECL(int) PDMR3LdrGetSymbolRC(PVM pVM, const char *pszModule, const char *pszSymbol, PRTGCPTR32 pRCPtrValue)
     758VMMR3DECL(int) PDMR3LdrGetSymbolRC(PVM pVM, const char *pszModule, const char *pszSymbol, PRTRCPTR pRCPtrValue)
    759759{
    760760#ifdef PDMLDR_FAKE_MODE
     
    812812 * @param   pRCPtrValue     Where to store the symbol value.
    813813 */
    814 VMMR3DECL(int) PDMR3LdrGetSymbolRCLazy(PVM pVM, const char *pszModule, const char *pszSymbol, PRTGCPTR32 pRCPtrValue)
     814VMMR3DECL(int) PDMR3LdrGetSymbolRCLazy(PVM pVM, const char *pszModule, const char *pszSymbol, PRTRCPTR pRCPtrValue)
    815815{
    816816#ifdef PDMLDR_FAKE_MODE
  • trunk/src/VBox/VMM/PGMHandler.cpp

    r13236 r13815  
    249249     * Resolve the GC handler.
    250250     */
    251     RTGCPTR32 pfnHandlerGC;
    252     int rc = PDMR3LdrGetSymbolRCLazy(pVM, pszModRC, pszHandlerRC, &pfnHandlerGC);
     251    RTRCPTR pfnHandlerRC;
     252    int rc = PDMR3LdrGetSymbolRCLazy(pVM, pszModRC, pszHandlerRC, &pfnHandlerRC);
    253253    if (VBOX_SUCCESS(rc))
    254         return PGMR3HandlerVirtualRegisterEx(pVM, enmType, GCPtr, GCPtrLast, pfnInvalidateR3, pfnHandlerR3, pfnHandlerGC, pszDesc);
     254        return PGMR3HandlerVirtualRegisterEx(pVM, enmType, GCPtr, GCPtrLast, pfnInvalidateR3, pfnHandlerR3, pfnHandlerRC, pszDesc);
    255255
    256256    AssertMsgFailed(("Failed to resolve %s.%s, rc=%Vrc.\n", pszModRC, pszHandlerRC, rc));
  • trunk/src/VBox/VMM/VMM.cpp

    r13813 r13815  
    496496     *      -# do a generic hypervisor call.
    497497     */
    498     RTGCPTR32 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);
    500500    if (VBOX_SUCCESS(rc))
    501501    {
     
    508508        CPUMPushHyper(pVM, VMMGC_DO_VMMGC_INIT);        /* Param 1: Operation. */
    509509        CPUMPushHyper(pVM, pVM->pVMRC);                 /* Param 0: pVM */
    510         CPUMPushHyper(pVM, 3 * sizeof(RTGCPTR32));      /* trampoline param: stacksize.  */
    511         CPUMPushHyper(pVM, GCPtrEP);                    /* Call EIP. */
     510        CPUMPushHyper(pVM, 3 * sizeof(RTRCPTR));        /* trampoline param: stacksize.  */
     511        CPUMPushHyper(pVM, RCPtrEP);                    /* Call EIP. */
    512512        CPUMSetHyperEIP(pVM, pVM->vmm.s.pfnCallTrampolineRC);
    513513
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette