VirtualBox

Changeset 20072 in vbox


Ignore:
Timestamp:
May 27, 2009 12:10:48 PM (16 years ago)
Author:
vboxsync
Message:

Fixed early init assertions

File:
1 edited

Legend:

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

    r20071 r20072  
    872872VMMR3DECL(void) EMR3RemLock(PVM pVM)
    873873{
     874#ifdef IN_RING3
     875    if (!PDMCritSectIsInitialized(&pVM->em.s.CritSectREM))
     876        return;     /* early init */
     877#else
     878    Assert(PDMCritSectIsInitialized(&pVM->em.s.CritSectREM));
     879#endif
    874880    int rc = PDMCritSectEnter(&pVM->em.s.CritSectREM, VERR_SEM_BUSY);
    875881    AssertMsg(rc == VINF_SUCCESS, ("%Rrc\n", rc));
     
    883889VMMR3DECL(void) EMR3RemUnlock(PVM pVM)
    884890{
     891#ifdef IN_RING3
     892    if (!PDMCritSectIsInitialized(&pVM->em.s.CritSectREM))
     893        return;     /* early init */
     894#else
     895    Assert(PDMCritSectIsInitialized(&pVM->em.s.CritSectREM));
     896#endif
    885897    PDMCritSectLeave(&pVM->em.s.CritSectREM);
    886898}
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