VirtualBox

Changeset 42496 in vbox


Ignore:
Timestamp:
Aug 1, 2012 8:48:06 AM (12 years ago)
Author:
vboxsync
Message:

Runtime/FreeBSD: Fix R0 spinlocks breaking VBox

File:
1 edited

Legend:

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

    r40806 r42496  
    150150
    151151            /* Enable interrupts while we sleep. */
     152            ASMSetFlags(fIntSaved);
    152153            critical_exit();
    153             ASMSetFlags(fIntSaved);
    154154            DELAY(1);
    155155        }
     
    195195        pThis->fIntSaved = 0;
    196196        if (ASMAtomicCmpXchgU32(&pThis->fLocked, 0, 1))
    197             ASMSetFlags(pThis->fIntSaved);
     197            ASMSetFlags(fIntSaved);
    198198        else
    199199            AssertMsgFailed(("Spinlock %p was not locked!\n", pThis));
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