lkml.org 
[lkml]   [2007]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[x86 setup 12/33] x86-64: add symbolic constants for the boot segment selectors
    Date
    From: H. Peter Anvin <hpa@zytor.com>

    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>
    ---
    include/asm-x86_64/segment.h | 8 ++++++++
    1 files changed, 8 insertions(+), 0 deletions(-)
    diff --git a/include/asm-x86_64/segment.h b/include/asm-x86_64/segment.h
    index adf2bf1..04b8ab2 100644
    --- a/include/asm-x86_64/segment.h
    +++ b/include/asm-x86_64/segment.h
    @@ -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

    --
    1.5.2.2
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-07-11 21:27    [from the cache]
    ©2003-2014 Jasper Spaans. Advertise on this site