X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3903760236c30e3b5ace7a4eefac3a269d68957c..cc8bc92ae4a8e9f1a1ab61bf83d34ad8150b3405:/osfmk/kern/queue.h diff --git a/osfmk/kern/queue.h b/osfmk/kern/queue.h index dc99d000f..1cdcd4f1b 100644 --- a/osfmk/kern/queue.h +++ b/osfmk/kern/queue.h @@ -197,7 +197,18 @@ struct queue_entry { struct queue_entry *next; /* next element */ struct queue_entry *prev; /* previous element */ +#if __arm__ && (__BIGGEST_ALIGNMENT__ > 4) +/* For the newer ARMv7k ABI where 64-bit types are 64-bit aligned, but pointers + * are 32-bit: + * Since this type is so often cast to various 64-bit aligned types + * aligning it to 64-bits will avoid -wcast-align without needing + * to disable it entirely. The impact on memory footprint should be + * negligible. + */ +} __attribute__ ((aligned (8))); +#else }; +#endif typedef struct queue_entry *queue_t; typedef struct queue_entry queue_head_t;