]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/timer.h
xnu-6153.41.3.tar.gz
[apple/xnu.git] / osfmk / kern / timer.h
index 2ac35e41415d19e5c4789d05637f28ad1f27cfcc..eeb8eebdb5bcee21fdc976ae4d4eacc8db0a96cb 100644 (file)
@@ -86,6 +86,12 @@ extern int precise_user_kernel_time;
  * Definitions for high resolution timers.
  */
 
+#if __LP64__
+#define TIMER_ALIGNMENT
+#else
+#define TIMER_ALIGNMENT __attribute__((packed, aligned(4)))
+#endif
+
 struct timer {
        uint64_t tstamp;
 #if defined(__LP64__)
@@ -96,7 +102,7 @@ struct timer {
        uint32_t high_bits;
        uint32_t high_bits_check;
 #endif /* !defined(__LP64__) */
-};
+} TIMER_ALIGNMENT;
 
 typedef struct timer timer_data_t, *timer_t;