VirtualBox

Ignore:
Timestamp:
Feb 16, 2012 2:07:37 PM (13 years ago)
Author:
vboxsync
Message:

Runtime/r0drv/solaris: fix debug build on Solaris 10 to not assert in spinlock code.

File:
1 edited

Legend:

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

    r39460 r40149  
    127127    mutex_enter(&pThis->Mtx);
    128128
     129    /*
     130     * Solaris 10 doesn't preserve the interrupt flag, but since we're at PIL_MAX we should be
     131     * fine and not get interrupts while lock is held. Re-disable interrupts to not upset
     132     * assertions & assumptions callers might have.
     133     */
     134#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
     135    ASMIntDisable();
     136#endif
     137
    129138#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    130139    Assert(!ASMIntAreEnabled());
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