Skip to content

Commit

Permalink
x86-64: add symbolic constants for the boot segment selectors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H. Peter Anvin authored and Linus Torvalds committed Jul 12, 2007
1 parent 77e1dd6 commit 8afd2af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/asm-x86_64/segment.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8afd2af

Please sign in to comment.