VirtualBox

Changeset 22127 in vbox


Ignore:
Timestamp:
Aug 10, 2009 11:42:07 AM (15 years ago)
Author:
vboxsync
Message:

iprt/spinlock.h: nit picking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/spinlock.h

    r20374 r22127  
    5656# elif defined(RT_OS_WINDOWS)
    5757    /** The saved [R|E]FLAGS. */
    58     RTCCUINTREG       uFlags;
     58    RTCCUINTREG     uFlags;
    5959    /** The KIRQL. */
    6060    unsigned char   uchIrqL;
     
    6666#  define RTSPINLOCKTMP_INITIALIZER { 0 }
    6767
    68 # elif defined(RT_OS_DARWIN)
     68# elif defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS)
    6969    /** The saved [R|E]FLAGS. */
    70     RTCCUINTREG       uFlags;
     70    RTCCUINTREG     uFlags;
    7171#  define RTSPINLOCKTMP_INITIALIZER { 0 }
    7272
    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. */
    7474    /** The saved [R|E]FLAGS. (dummy) */
    75     RTCCUINTREG       uFlags;
     75    RTCCUINTREG     uFlags;
    7676#  define RTSPINLOCKTMP_INITIALIZER { 0 }
    7777
    7878# else
    79 #  error "Your OS is not supported.\n"
     79#  error "PORTME\n"
    8080    /** The saved [R|E]FLAGS. */
    81     RTCCUINTREG       uFlags;
     81    RTCCUINTREG     uFlags;
    8282# endif
    8383
    8484#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;
    8887# define RTSPINLOCKTMP_INITIALIZER { 0 }
    8988#endif /* !IN_RING0 */
Note: See TracChangeset for help on using the changeset viewer.

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