Changeset 57330 in vbox
- Timestamp:
- Aug 13, 2015 2:49:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c
r57322 r57330 129 129 { 130 130 PRTSPINLOCKINTERNAL pThis = (PRTSPINLOCKINTERNAL)Spinlock; 131 IPRT_LINUX_SAVE_EFL_AC(); 131 132 RT_ASSERT_PREEMPT_CPUID_VAR(); 132 133 AssertMsg(pThis && pThis->u32Magic == RTSPINLOCK_MAGIC, 133 134 ("pThis=%p u32Magic=%08x\n", pThis, pThis ? (int)pThis->u32Magic : 0)); 134 IPRT_LINUX_SAVE_EFL_AC();135 135 136 136 #ifdef CONFIG_PROVE_LOCKING … … 158 158 { 159 159 PRTSPINLOCKINTERNAL pThis = (PRTSPINLOCKINTERNAL)Spinlock; 160 IPRT_LINUX_SAVE_EFL_AC(); /* spin_unlock* may preempt and trash eflags.ac. */ 160 161 RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASE_VARS(); 161 162 AssertMsg(pThis && pThis->u32Magic == RTSPINLOCK_MAGIC, 162 163 ("pThis=%p u32Magic=%08x\n", pThis, pThis ? (int)pThis->u32Magic : 0)); 163 164 RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASE(pThis); 164 IPRT_LINUX_SAVE_EFL_AC(); /* spin_unlock* may preempt and trash eflags.ac. */165 165 166 166 #ifdef CONFIG_PROVE_LOCKING
Note:
See TracChangeset
for help on using the changeset viewer.