From 873ac6e4b174cd49b81da4555a47b9172b5f1dbf Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 11 Jul 2007 12:18:37 -0700 Subject: [PATCH] --- yaml --- r: 58783 b: refs/heads/master c: 8afd2af88921c2cb1c9540cecd0714da7ae4fcd0 h: refs/heads/master i: 58781: 492041bb0152660d8ad230947273979cdfbf5000 58779: fc26dc70836d220a474c236c9763838a698ea558 58775: 989e168800362123191bac5d9284901629e3ac32 58767: 4bf45c9c9b02a912d0a98eba144766a62992fb0c 58751: 665003acf30cc0a7dc2c86c42bd0217c46317b11 v: v3 --- [refs] | 2 +- trunk/include/asm-x86_64/segment.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 0ee1b8acf82b..0c432fd40653 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 77e1dd654bc24182a7ad34f415abd488ae7af6eb +refs/heads/master: 8afd2af88921c2cb1c9540cecd0714da7ae4fcd0 diff --git a/trunk/include/asm-x86_64/segment.h b/trunk/include/asm-x86_64/segment.h index adf2bf1e187c..04b8ab21328f 100644 --- a/trunk/include/asm-x86_64/segment.h +++ b/trunk/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