Changeset 29281 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- May 9, 2010 11:40:43 PM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/solaris
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c
r28800 r29281 34 34 35 35 #include <iprt/asm.h> 36 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 37 # include <iprt/asm-amd64-x86.h> 38 #endif 36 39 #include <iprt/assert.h> 37 40 … … 43 46 AssertBreakpoint(); 44 47 if ( !g_frtSolarisSplSetsEIF 45 || ASMIntAreEnabled()) 48 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 49 || ASMIntAreEnabled() 50 #else 51 /* PORTME: Check if interrupts are enabled, if applicable. */ 52 #endif 53 ) 46 54 cmn_err(CE_CONT, pch); 47 55 return; -
trunk/src/VBox/Runtime/r0drv/solaris/initterm-r0drv-solaris.c
r28800 r29281 33 33 34 34 #include <iprt/err.h> 35 #include <iprt/asm.h> 35 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 36 # include <iprt/asm-amd64-x86.h> 37 #endif 36 38 #include "internal/initterm.h" 37 39 … … 53 55 if (!rc) 54 56 { 57 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 55 58 /* 56 59 * Detech whether spl*() is preserving the interrupt flag or not. … … 65 68 g_frtSolarisSplSetsEIF = true; 66 69 ASMSetFlags(uOldFlags); 70 #else 71 /* PORTME: See if the amd64/x86 problem applies to this architecture. */ 72 #endif 67 73 68 74 return VINF_SUCCESS; -
trunk/src/VBox/Runtime/r0drv/solaris/spinlock-r0drv-solaris.c
r28800 r29281 34 34 35 35 #include <iprt/asm.h> 36 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 37 # include <iprt/asm-amd64-x86.h> 38 #endif 36 39 #include <iprt/assert.h> 37 40 #include <iprt/err.h> … … 117 120 Assert(pThis->u32Magic == RTSPINLOCK_MAGIC); 118 121 122 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 119 123 pTmp->uFlags = ASMIntDisableFlags(); 124 #else 125 pTmp->uFlags = 0; 126 #endif 120 127 mutex_enter(&pThis->Mtx); 121 128 129 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 122 130 Assert(!ASMIntAreEnabled()); 131 #endif 123 132 RT_ASSERT_PREEMPT_CPUID_SPIN_ACQUIRED(pThis); 124 133 } … … 136 145 137 146 mutex_exit(&pThis->Mtx); 147 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 138 148 ASMSetFlags(pTmp->uFlags); 149 #endif 139 150 140 151 RT_ASSERT_PREEMPT_CPUID(); … … 149 160 Assert(pThis->u32Magic == RTSPINLOCK_MAGIC); 150 161 NOREF(pTmp); 151 #if def RT_STRICT162 #if defined(RT_STRICT) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) 152 163 bool fIntsOn = ASMIntAreEnabled(); 153 164 #endif … … 155 166 mutex_enter(&pThis->Mtx); 156 167 168 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 157 169 AssertMsg(fIntsOn == ASMIntAreEnabled(), ("fIntsOn=%RTbool\n", fIntsOn)); 170 #endif 158 171 159 172 RT_ASSERT_PREEMPT_CPUID_SPIN_ACQUIRED(pThis); … … 170 183 RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASE(pThis); 171 184 NOREF(pTmp); 172 #if def RT_STRICT185 #if defined(RT_STRICT) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) 173 186 bool fIntsOn = ASMIntAreEnabled(); 174 187 #endif … … 176 189 mutex_exit(&pThis->Mtx); 177 190 191 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 178 192 AssertMsg(fIntsOn == ASMIntAreEnabled(), ("fIntsOn=%RTbool\n", fIntsOn)); 193 #endif 179 194 RT_ASSERT_PREEMPT_CPUID(); 180 195 } -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c
r28800 r29281 33 33 #include <iprt/thread.h> 34 34 35 #include <iprt/asm.h> 35 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 36 # include <iprt/asm-amd64-x86.h> 37 #endif 36 38 #include <iprt/assert.h> 37 39 #include <iprt/err.h> … … 79 81 if (!vbi_is_preempt_enabled()) 80 82 return false; 83 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 81 84 if (!ASMIntAreEnabled()) 82 85 return false; 86 #endif 83 87 if (getpil() >= DISP_LEVEL) 84 88 return false; -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/timer-r0drv-solaris.c
r28800 r29281 170 170 */ 171 171 RTTimerStop(pTimer); 172 ASMAtomicWriteU32( pTimer, ~RTTIMER_MAGIC);172 ASMAtomicWriteU32(&pTimer->u32Magic, ~RTTIMER_MAGIC); 173 173 RTMemFree(pTimer); 174 174 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.