Messages in this thread | | | Date | Sat, 21 Jul 2007 18:03:27 +0200 (CEST) | From | Jan Engelhardt <> | Subject | Re: [PATCH] Use descriptor's functions instead of inline assembly |
| |
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 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/
| |