Commit 8afd2af8 authored by H. Peter Anvin's avatar H. Peter Anvin Committed by Linus Torvalds
Browse files

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: default avatarH. Peter Anvin <>
Signed-off-by: default avatarLinus Torvalds <>
parent 77e1dd65
......@@ -3,6 +3,14 @@
#include <asm/cache.h>
/* Simple and small GDT entries for booting only */
#define __BOOT_CS (GDT_ENTRY_BOOT_CS * 8)
#define __BOOT_DS (GDT_ENTRY_BOOT_DS * 8)
#define __KERNEL_CS 0x10
#define __KERNEL_DS 0x18
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment