~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to include/iprt/spinlock.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-12-18 16:44:29 UTC
  • mfrom: (0.3.3 upstream) (0.4.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091218164429-jd34ccexpv5na11a
Tags: 3.1.2-dfsg-1ubuntu1
* Merge from Debian unstable (LP: #498219), remaining changes:
  - Disable update action
    - debian/patches/u01-disable-update-action.dpatch
  - VirtualBox should go in Accessories, not in System tools (LP: #288590)
    - debian/virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add Apport hook
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Add Launchpad integration
    - debian/control
    - debian/lpi-bug.xpm
    - debian/patches/u02-lp-integration.dpatch
* Fixes the following bugs:
  - Kernel module fails to build with Linux >= 2.6.32 (LP: #474625)
  - X.Org drivers need to be rebuilt against X-Server 1.7 (LP: #495935)
  - The *-source packages try to build the kernel modules even though the
    kernel headers aren't available (LP: #473334)
* Replace *-source packages with transitional packages for *-dkms.
* Adapt u01-disable-update-action.dpatch and u02-lp-integration.dpatch for
  new upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
# elif defined(RT_OS_WINDOWS)
57
57
    /** The saved [R|E]FLAGS. */
58
 
    RTCCUINTREG       uFlags;
 
58
    RTCCUINTREG     uFlags;
59
59
    /** The KIRQL. */
60
60
    unsigned char   uchIrqL;
61
61
#  define RTSPINLOCKTMP_INITIALIZER { 0, 0 }
65
65
    unsigned long   flFlags;
66
66
#  define RTSPINLOCKTMP_INITIALIZER { 0 }
67
67
 
68
 
# elif defined(RT_OS_DARWIN)
 
68
# elif defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) || defined(RT_OS_SOLARIS)
69
69
    /** The saved [R|E]FLAGS. */
70
 
    RTCCUINTREG       uFlags;
 
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)
74
74
    /** The saved [R|E]FLAGS. (dummy) */
75
 
    RTCCUINTREG       uFlags;
 
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       uFlags;
 
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 */
90
89
} RTSPINLOCKTMP;