VirtualBox

Changeset 5053 in vbox


Ignore:
Timestamp:
Sep 26, 2007 3:46:15 PM (17 years ago)
Author:
vboxsync
Message:

case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r5040 r5053  
    15151515    RTGCPTR         pvPageGC;
    15161516    /** The lock information that PGMPhysReleasePageMappingLock needs. */
    1517     PGMPAGEMAPLOCK  pageMapLock;
     1517    PGMPAGEMAPLOCK  PageMapLock;
    15181518} CPUMDISASSTATE, *PCPUMDISASSTATE;
    15191519
     
    15561556            {
    15571557                /* Release mapping lock previously acquired. */
    1558                 if (PGMPhysIsPageMappingLockValid(pState->pVM, &pState->pageMapLock))
    1559                     PGMPhysReleasePageMappingLock(pState->pVM, &pState->pageMapLock);
    1560 
    1561                 rc = PGMPhysGCPtr2CCPtrReadOnly(pState->pVM, pState->pvPageGC, &pState->pvPageHC, &pState->pageMapLock);
     1558                if (PGMPhysIsPageMappingLockValid(pState->pVM, &pState->PageMapLock))
     1559                    PGMPhysReleasePageMappingLock(pState->pVM, &pState->PageMapLock);
     1560
     1561                rc = PGMPhysGCPtr2CCPtrReadOnly(pState->pVM, pState->pvPageGC, &pState->pvPageHC, &pState->PageMapLock);
    15621562            }
    15631563            if (VBOX_FAILURE(rc))
     
    16881688
    16891689    /* Release mapping lock acquired in cpumR3DisasInstrRead. */
    1690     if (PGMPhysIsPageMappingLockValid(pVM, &State.pageMapLock))
    1691         PGMPhysReleasePageMappingLock(pVM, &State.pageMapLock);
     1690    if (PGMPhysIsPageMappingLockValid(pVM, &State.PageMapLock))
     1691        PGMPhysReleasePageMappingLock(pVM, &State.PageMapLock);
    16921692
    16931693    return rc;
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