VirtualBox

Changeset 1380 in vbox for trunk


Ignore:
Timestamp:
Mar 9, 2007 3:47:21 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19376
Message:

Naming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/TRPMGC.cpp

    r1379 r1380  
    111111    RTGCPTR     GCPtrIDTEnd = (RTGCPTR)((RTGCUINTPTR)GCPtrIDT + cbIDT + 1);
    112112#endif
    113     uint32_t    iTrap       = ((RTGCUINTPTR)pvFault - (RTGCUINTPTR)GCPtrIDT)/sizeof(VBOXIDTE);
     113    uint32_t    iGate       = ((RTGCUINTPTR)pvFault - (RTGCUINTPTR)GCPtrIDT)/sizeof(VBOXIDTE);
    114114
    115115    Assert(pvFault >= GCPtrIDT && pvFault < GCPtrIDTEnd);
     
    118118#if 0
    119119    /* Check if we can handle the write here. */   
    120     if (     iTrap != 3                                         /* Gate 3 is handled differently; could do it here as well, but let ring 3 handle this case for now. */
    121         &&  !ASMBitTest(&pVM->trpm.s.au32IdtPatched[0], iTrap)) /* Passthru gates need special attention too. */
     120    if (     iGate != 3                                         /* Gate 3 is handled differently; could do it here as well, but let ring 3 handle this case for now. */
     121        &&  !ASMBitTest(&pVM->trpm.s.au32IdtPatched[0], iGate)) /* Passthru gates need special attention too. */
    122122    {
    123123        uint32_t cb;
     
    125125        if (VBOX_SUCCESS(rc) && cb)
    126126        {
    127             uint32_t iTrap1 = ((RTGCUINTPTR)pvFault - (RTGCUINTPTR)GCPtrIDT + cb - 1)/sizeof(VBOXIDTE);
     127            uint32_t iGate1 = ((RTGCUINTPTR)pvFault - (RTGCUINTPTR)GCPtrIDT + cb - 1)/sizeof(VBOXIDTE);
    128128
    129             Log(("trpmgcGuestIDTWriteHandler: write to gate %x (%x) offset %x cb=%d\n", iTrap, iTrap1, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)GCPtrIDT, cb));
     129            Log(("trpmgcGuestIDTWriteHandler: write to gate %x (%x) offset %x cb=%d\n", iGate, iGate1, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)GCPtrIDT, cb));
    130130
    131             trpmClearGuestTrapHandler(pVM, iTrap);
    132             if (iTrap != iTrap1)
    133                 trpmClearGuestTrapHandler(pVM, iTrap1);
     131            trpmClearGuestTrapHandler(pVM, iGate);
     132            if (iGate != iGate1)
     133                trpmClearGuestTrapHandler(pVM, iGate1);
    134134
    135135            STAM_COUNTER_INC(&pVM->trpm.s.StatGCWriteGuestIDTHandled);
     
    139139#endif
    140140
    141     Log(("trpmgcGuestIDTWriteHandler: write to gate %x offset %x\n", iTrap, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)GCPtrIDT));
     141    Log(("trpmgcGuestIDTWriteHandler: write to gate %x offset %x\n", iGate, (RTGCUINTPTR)pvFault - (RTGCUINTPTR)GCPtrIDT));
    142142
    143143    /** @todo Check which IDT entry and keep the update cost low in TRPMR3SyncIDT() and CSAMCheckGates(). */
Note: See TracChangeset for help on using the changeset viewer.

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