[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0707211802050.21737@fbirervta.pbzchgretzou.qr>
Date: Sat, 21 Jul 2007 18:03:27 +0200 (CEST)
From: Jan Engelhardt <jengelh@...putergmbh.de>
To: Glauber de Oliveira Costa <gcosta@...hat.com>
cc: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org, ak@...e.de
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists