VirtualBox

Changeset 22139 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Aug 10, 2009 2:18:37 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50907
Message:

IPRT: Corrected RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASE to work around solaris issue where RTThreadPreemptionIsEnabled doesn't notice that we're in a spinlock.

Location:
trunk/src/VBox/Runtime/r0drv
Files:
2 edited

Legend:

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

    r22131 r22139  
    145145    spin_unlock_irqrestore(&pThis->Spinlock, pTmp->flFlags);
    146146
    147     RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASED();
     147    RT_ASSERT_PREEMPT_CPUID();
    148148}
    149149RT_EXPORT_SYMBOL(RTSpinlockReleaseNoInts);
     
    176176    spin_unlock(&pThis->Spinlock);
    177177
    178     RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASED();
     178    RT_ASSERT_PREEMPT_CPUID();
    179179}
    180180RT_EXPORT_SYMBOL(RTSpinlockRelease);
  • trunk/src/VBox/Runtime/r0drv/solaris/spinlock-r0drv-solaris.c

    r22134 r22139  
    141141    ASMSetFlags(pTmp->uFlags);
    142142
    143     RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASED();
     143    RT_ASSERT_PREEMPT_CPUID();
    144144}
    145145
     
    171171    mutex_exit(&pThis->Mtx);
    172172
    173     RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASED();
     173    RT_ASSERT_PREEMPT_CPUID();
    174174}
    175175
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette