x86: unify struct desc_ptr
This patch unifies struct desc_ptr between i386 and x86_64. They can be expressed in the exact same way in C code, only having to change the name of one of them. As Xgt_desc_struct is ugly and big, this is the one that goes away. There's also a padding field in i386, but it is not really needed in the C structure definition. 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>
This commit is contained in:
committed by
Ingo Molnar
parent
6842ef0e85
commit
6b68f01baa
@@ -290,7 +290,7 @@ static void svm_hardware_enable(void *garbage)
|
||||
#ifdef CONFIG_X86_64
|
||||
struct desc_ptr gdt_descr;
|
||||
#else
|
||||
struct Xgt_desc_struct gdt_descr;
|
||||
struct desc_ptr gdt_descr;
|
||||
#endif
|
||||
struct desc_struct *gdt;
|
||||
int me = raw_smp_processor_id();
|
||||
|
||||
Reference in New Issue
Block a user