X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..527f99514973766e9c0382a4d8550dfb00f54939:/osfmk/i386/gdt.c diff --git a/osfmk/i386/gdt.c b/osfmk/i386/gdt.c index 7677f2488..04937648b 100644 --- a/osfmk/i386/gdt.c +++ b/osfmk/i386/gdt.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2009 Apple Inc. All rights reserved. + * Copyright (c) 2000-2013 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -62,7 +62,9 @@ */ #include -struct real_descriptor master_gdt[GDTSZ] __attribute__ ((section("__INITGDT,__data")))= { +struct real_descriptor master_gdt[GDTSZ] + __attribute__((section("__HIB,__desc"))) + __attribute__((aligned(PAGE_SIZE))) = { [SEL_TO_INDEX(KERNEL32_CS)] = MAKE_REAL_DESCRIPTOR( /* kernel 32-bit code */ 0, 0xfffff, @@ -87,7 +89,6 @@ struct real_descriptor master_gdt[GDTSZ] __attribute__ ((section("__INITGDT,__da SZ_32|SZ_G, ACC_P|ACC_PL_K|ACC_DATA_W ), -#ifdef __x86_64__ [SEL_TO_INDEX(USER_CS)] = MAKE_REAL_DESCRIPTOR( /* 32-bit user code segment */ 0, 0xfffff, @@ -106,5 +107,4 @@ struct real_descriptor master_gdt[GDTSZ] __attribute__ ((section("__INITGDT,__da SZ_64|SZ_G, ACC_P|ACC_PL_U|ACC_CODE_R ), -#endif };