X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/13f56ec4e58bf8687e2a68032c093c0213dd519b..316670eb35587141e969394ae8537d66b9211e80:/osfmk/i386/gdt.c diff --git a/osfmk/i386/gdt.c b/osfmk/i386/gdt.c index 7677f2488..ae40e4f01 100644 --- a/osfmk/i386/gdt.c +++ b/osfmk/i386/gdt.c @@ -62,7 +62,13 @@ */ #include -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,