On Jul 20 2007 10:56, Glauber de Oliveira Costa wrote: >diff --git a/arch/x86_64/kernel/head64.c b/arch/x86_64/kernel/head64.c >index 6c34bdd..dde41d7 100644 >--- a/arch/x86_64/kernel/head64.c >+++ b/arch/x86_64/kernel/head64.c >@@ -70,7 +70,7 @@ void __init x86_64_start_kernel(char * real_mode_data) > > for (i = 0; i < IDT_ENTRIES; i++) > set_intr_gate(i, early_idt_handler); >- asm volatile("lidt %0" :: "m" (idt_descr)); >+ load_idt((const struct desc_ptr *)&idt_descr);
Cast is not required, &idt_descr is already 'struct desc_ptr *'. (Also elsewhere) Jan -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/