x86: introduce ldt_desc type.
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Wed, 30 Jan 2008 12:31:13 +0000 (13:31 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:31:13 +0000 (13:31 +0100)
this patch introduces ldt_desc type to account for the differences
in the ldt descriptor in x86_64 and i386

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/desc_64.h
include/asm-x86/desc_defs.h

index 887393f..c49f928 100644 (file)
@@ -113,7 +113,7 @@ static inline void store_idt(struct desc_ptr *dtr)
 static inline void set_tssldt_descriptor(void *ptr, unsigned long tss,
                                         unsigned type, unsigned size)
 {
-       struct ldttss_desc d;
+       struct ldttss_desc64 d;
 
        memset(&d, 0, sizeof(d));
        d.limit0 = size & 0xFFFF;
Simple merge