]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86-64: add symbolic constants for the boot segment selectors
authorH. Peter Anvin <hpa@zytor.com>
Wed, 11 Jul 2007 19:18:37 +0000 (12:18 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 12 Jul 2007 17:55:54 +0000 (10:55 -0700)
Add symbolic constants for the segment selectors/GDT slots used by
the setup code, for consistency with i386.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-x86_64/segment.h

index adf2bf1e187c341524e69bf7ddc7b8b2b449b9de..04b8ab21328faed255f2cfca4d02f267c9fd5fb3 100644 (file)
@@ -3,6 +3,14 @@
 
 #include <asm/cache.h>
 
+/* 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