Re: [PATCH] Use descriptor's functions instead of inline assembly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux