VirtualBox

Changeset 22550 in vbox for trunk/src


Ignore:
Timestamp:
Aug 28, 2009 12:30:51 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51576
Message:

spinlock-r0drv-solaris.c: more assertions, now for the interrupt flag setting we're suspecting S10 to do.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/spinlock-r0drv-solaris.c

    r22139 r22550  
    124124    mutex_enter(&pThis->Mtx);
    125125
     126    Assert(!ASMIntAreEnabled());
    126127    RT_ASSERT_PREEMPT_CPUID_SPIN_ACQUIRED(pThis);
    127128}
     
    152153    Assert(pThis->u32Magic == RTSPINLOCK_MAGIC);
    153154    NOREF(pTmp);
     155#ifdef RT_STRICT
     156    bool fIntsOn = ASMIntAreEnabled();
     157#endif
    154158
    155159    mutex_enter(&pThis->Mtx);
     160
     161    AssertMsg(fIntsOn == ASMIntAreEnabled(), ("fIntsOn=%RTbool\n", fIntsOn));
    156162
    157163    RT_ASSERT_PREEMPT_CPUID_SPIN_ACQUIRED(pThis);
     
    168174    RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASE(pThis);
    169175    NOREF(pTmp);
     176#ifdef RT_STRICT
     177    bool fIntsOn = ASMIntAreEnabled();
     178#endif
    170179
    171180    mutex_exit(&pThis->Mtx);
    172181
     182    AssertMsg(fIntsOn == ASMIntAreEnabled(), ("fIntsOn=%RTbool\n", fIntsOn));
    173183    RT_ASSERT_PREEMPT_CPUID();
    174184}
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