aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-07-11 15:18:37 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-12 13:55:54 -0400
commit8afd2af88921c2cb1c9540cecd0714da7ae4fcd0 (patch)
tree162a4de59d8dab371f5568bf37ea7de7af59115f /include/asm-x86_64
parent77e1dd654bc24182a7ad34f415abd488ae7af6eb (diff)
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 <hpa@zytor.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r--include/asm-x86_64/segment.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-x86_64/segment.h b/include/asm-x86_64/segment.h
index adf2bf1e187c..04b8ab21328f 100644
--- a/include/asm-x86_64/segment.h
+++ b/include/asm-x86_64/segment.h
@@ -3,6 +3,14 @@
3 3
4#include <asm/cache.h> 4#include <asm/cache.h>
5 5
6/* Simple and small GDT entries for booting only */
7
8#define GDT_ENTRY_BOOT_CS 2
9#define __BOOT_CS (GDT_ENTRY_BOOT_CS * 8)
10
11#define GDT_ENTRY_BOOT_DS (GDT_ENTRY_BOOT_CS + 1)
12#define __BOOT_DS (GDT_ENTRY_BOOT_DS * 8)
13
6#define __KERNEL_CS 0x10 14#define __KERNEL_CS 0x10
7#define __KERNEL_DS 0x18 15#define __KERNEL_DS 0x18
8 16