]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/gdt.c
xnu-2050.7.9.tar.gz
[apple/xnu.git] / osfmk / i386 / gdt.c
index 7677f24887ce90f691fd77dead3eb7df259ac742..ae40e4f014e5a72a1f2a77531c7844a6683ecee9 100644 (file)
  */
 #include <i386/seg.h>
 
-struct real_descriptor master_gdt[GDTSZ] __attribute__ ((section("__INITGDT,__data")))= {
+struct real_descriptor master_gdt[GDTSZ]
+#if __x86_64__
+       __attribute__((section("__HIB,__desc")))
+#else
+       __attribute__((section("__INITGDT,__DATA")))
+#endif
+       __attribute__((aligned(CPU_CACHE_SIZE))) = {
        [SEL_TO_INDEX(KERNEL32_CS)] = MAKE_REAL_DESCRIPTOR(     /* kernel 32-bit code */ 
                0,
                0xfffff,