lkml.org 
[lkml]   [2007]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2007-07-21 18:05    [W:0.099 / U:0.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site