Changeset 22150 in vbox for trunk/src/VBox/Runtime/r0drv/solaris/vbi
- Timestamp:
- Aug 11, 2009 9:41:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c
r22073 r22150 40 40 #include <iprt/assert.h> 41 41 #include <iprt/err.h> 42 #include <iprt/mp.h> 42 43 43 44 … … 138 139 { 139 140 AssertPtr(pState); 140 Assert(pState->u chDummy != 42);141 pState->u chDummy= 42;141 Assert(pState->u32Reserved == 0); 142 pState->u32Reserved = 42; 142 143 vbi_preempt_disable(); 144 RT_ASSERT_PREEMPT_CPUID_DISABLE(pState); 143 145 } 144 146 … … 147 149 { 148 150 AssertPtr(pState); 149 Assert(pState->uchDummy == 42); 150 pState->uchDummy = 0; 151 Assert(pState->u32Reserved == 42); 152 pState->u32Reserved = 0; 153 RT_ASSERT_PREEMPT_CPUID_RESTORE(pState); 151 154 vbi_preempt_enable(); 152 155 }
Note:
See TracChangeset
for help on using the changeset viewer.