From: H. Peter Anvin Date: Wed, 11 Jul 2007 19:18:37 +0000 (-0700) Subject: x86-64: add symbolic constants for the boot segment selectors X-Git-Tag: v2.6.23-rc1~1134 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8afd2af88921c2cb1c9540cecd0714da7ae4fcd0;p=linux-2.6 x86-64: add symbolic constants for the boot segment selectors Add symbolic constants for the segment selectors/GDT slots used by the setup code, for consistency with i386. Signed-off-by: H. Peter Anvin Signed-off-by: Linus Torvalds --- diff --git a/include/asm-x86_64/segment.h b/include/asm-x86_64/segment.h index adf2bf1e18..04b8ab2132 100644 --- a/include/asm-x86_64/segment.h +++ b/include/asm-x86_64/segment.h @@ -3,6 +3,14 @@ #include +/* Simple and small GDT entries for booting only */ + +#define GDT_ENTRY_BOOT_CS 2 +#define __BOOT_CS (GDT_ENTRY_BOOT_CS * 8) + +#define GDT_ENTRY_BOOT_DS (GDT_ENTRY_BOOT_CS + 1) +#define __BOOT_DS (GDT_ENTRY_BOOT_DS * 8) + #define __KERNEL_CS 0x10 #define __KERNEL_DS 0x18