VirtualBox

Ignore:
Timestamp:
Nov 4, 2008 9:55:34 PM (16 years ago)
Author:
vboxsync
Message:

#1865: Final VMM cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstMicro.cpp

    r13782 r13813  
    209209        return rc;
    210210    }
    211     RTGCPTR32 GCPtrEntry;
    212     rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGC", &GCPtrEntry);
     211    RTRCPTR RCPtrEntry;
     212    rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGC", &RCPtrEntry);
    213213    if (VBOX_FAILURE(rc))
    214214    {
     
    216216        return rc;
    217217    }
    218     RTGCPTR32 GCPtrStart;
    219     rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGCAsmStart", &GCPtrStart);
     218    RTRCPTR RCPtrStart;
     219    rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGCAsmStart", &RCPtrStart);
    220220    if (VBOX_FAILURE(rc))
    221221    {
     
    223223        return rc;
    224224    }
    225     RTGCPTR32 GCPtrEnd;
    226     rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGCAsmEnd", &GCPtrEnd);
     225    RTRCPTR RCPtrEnd;
     226    rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGCAsmEnd", &RCPtrEnd);
    227227    if (VBOX_FAILURE(rc))
    228228    {
     
    241241        return rc;
    242242    }
    243     pTst->GCPtr = MMHyperHC2GC(pVM, pTst);
    244     pTst->GCPtrStack = MMHyperHC2GC(pVM, &pTst->au8Stack[sizeof(pTst->au8Stack) - 32]);
     243    pTst->RCPtr = MMHyperR3ToRC(pVM, pTst);
     244    pTst->RCPtrStack = MMHyperR3ToRC(pVM, &pTst->au8Stack[sizeof(pTst->au8Stack) - 32]);
    245245
    246246    /* the page must be writable from user mode */
    247     rc = PGMMapModifyPage(pVM, pTst->GCPtr, sizeof(*pTst), X86_PTE_US | X86_PTE_RW, ~(uint64_t)(X86_PTE_US | X86_PTE_RW));
     247    rc = PGMMapModifyPage(pVM, pTst->RCPtr, sizeof(*pTst), X86_PTE_US | X86_PTE_RW, ~(uint64_t)(X86_PTE_US | X86_PTE_RW));
    248248    if (VBOX_FAILURE(rc))
    249249    {
     
    253253
    254254    /* all the code must be executable from R3. */
    255     rc = PGMMapModifyPage(pVM, GCPtrStart, GCPtrEnd - GCPtrStart + PAGE_SIZE, X86_PTE_US, ~(uint64_t)X86_PTE_US);
     255    rc = PGMMapModifyPage(pVM, RCPtrStart, RCPtrEnd - RCPtrStart + PAGE_SIZE, X86_PTE_US, ~(uint64_t)X86_PTE_US);
    256256    if (VBOX_FAILURE(rc))
    257257    {
     
    265265     * Disassemble the assembly...
    266266     */
    267     RTGCPTR GCPtr = GCPtrStart;
    268     while (GCPtr < GCPtrEnd)
     267    RTGCPTR GCPtr = RCPtrStart;
     268    while (GCPtr < RCPtrEnd)
    269269    {
    270270        size_t  cb = 0;
     
    298298        for (int c = 0; c < 100; c++)
    299299        {
    300             int rc2 = VMMR3CallGC(pVM, GCPtrEntry, 2, pTst->GCPtr, enmTest);
     300            int rc2 = VMMR3CallRC(pVM, RCPtrEntry, 2, pTst->RCPtr, enmTest);
    301301            if (VBOX_SUCCESS(rc2))
    302302            {
     
    327327    {
    328328        TSTMICROTEST enmTest = (TSTMICROTEST)i;
    329         rc = VMMR3CallGC(pVM, GCPtrEntry, 2, pTst->GCPtr, enmTest);
     329        rc = VMMR3CallRC(pVM, RCPtrEntry, 2, pTst->RCPtr, enmTest);
    330330        PrintResultTrap(pTst, enmTest, rc);
    331331    }
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