VirtualBox

Changeset 22126 in vbox for trunk/src


Ignore:
Timestamp:
Aug 10, 2009 11:38:54 AM (15 years ago)
Author:
vboxsync
Message:

RTSpinlockAcquireNoInts/solaris: Must disable interrupts.

File:
1 edited

Legend:

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

    r22073 r22126  
    110110    AssertPtr(pSpinlockInt);
    111111    Assert(pSpinlockInt->u32Magic == RTSPINLOCK_MAGIC);
    112     NOREF(pTmp);
    113112
    114     /** @todo r=bird: are interrupts disabled implicitly by mutex_enter?!? */
     113    pTmp->uFlags = ASMIntDisableFlags();
    115114    mutex_enter(&pSpinlockInt->Mtx);
    116115}
     
    122121    AssertPtr(pSpinlockInt);
    123122    Assert(pSpinlockInt->u32Magic == RTSPINLOCK_MAGIC);
    124     NOREF(pTmp);
    125123
    126124    mutex_exit(&pSpinlockInt->Mtx);
     125    ASMSetFlags(pTmp->uFlags);
    127126}
    128127
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