Changeset 22127 in vbox
- Timestamp:
- Aug 10, 2009 11:42:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/spinlock.h
r20374 r22127 56 56 # elif defined(RT_OS_WINDOWS) 57 57 /** The saved [R|E]FLAGS. */ 58 RTCCUINTREG 58 RTCCUINTREG uFlags; 59 59 /** The KIRQL. */ 60 60 unsigned char uchIrqL; … … 66 66 # define RTSPINLOCKTMP_INITIALIZER { 0 } 67 67 68 # elif defined(RT_OS_DARWIN) 68 # elif defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) 69 69 /** The saved [R|E]FLAGS. */ 70 RTCCUINTREG 70 RTCCUINTREG uFlags; 71 71 # define RTSPINLOCKTMP_INITIALIZER { 0 } 72 72 73 # elif defined(RT_OS_OS2) || defined(RT_OS_FREEBSD) || defined(RT_OS_SOLARIS)73 # elif defined(RT_OS_OS2) || defined(RT_OS_FREEBSD) /** @todo r=bird: FreeBSD is probably doing the wrong thing here. */ 74 74 /** The saved [R|E]FLAGS. (dummy) */ 75 RTCCUINTREG 75 RTCCUINTREG uFlags; 76 76 # define RTSPINLOCKTMP_INITIALIZER { 0 } 77 77 78 78 # else 79 # error " Your OS is not supported.\n"79 # error "PORTME\n" 80 80 /** The saved [R|E]FLAGS. */ 81 RTCCUINTREG 81 RTCCUINTREG uFlags; 82 82 # endif 83 83 84 84 #else /* !IN_RING0 */ 85 /** The saved [R|E]FLAGS. 86 * (RT spinlocks will by definition disable interrupts.) */ 87 RTCCUINTREG uFlags; 85 /** The saved [R|E]FLAGS. (dummy) */ 86 RTCCUINTREG uFlags; 88 87 # define RTSPINLOCKTMP_INITIALIZER { 0 } 89 88 #endif /* !IN_RING0 */
Note:
See TracChangeset
for help on using the changeset viewer.