use "normalized" syntax for lgdt/lidt
PATCH 1/1 use "normalized" syntax for lgdt/lidt
Hi,
Generates same code, but uses asm syntax that matches other locations in arch/i386/.
Please apply.
--
~Randy
patch_name: lxdt_norm.patchpatch_version: 2003-09-22.12:21:55
author: Randy.Dunlap <[email protected]>
description: use common (normalized) asm syntax for lidt/lgdt,
specifying that the operand is an input value instead of output; product: Linux product_versions: 2.6.0-922 diffstat: = arch/i386/kernel/cpu/common.c | 4 ++-- arch/i386/kernel/traps.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
arch/i386/kernel/cpu/common.c renamed from arch/i386/kernel/cpu/common.c~lxdt +2 -2
@@ -493,8 +493,8 @@ void __init cpu_init (void)*/ memcpy (thread->tls_array, cpu_gdt_table[cpu],GDT_ENTRY_TLS_ENTRIES *8 ); - __asm__ __volatile__("lgdt %0" :"=m" (cpu_gdt_descr[cpu])); - __asm__ __volatile__("lidt %0" :"=m" (idt_descr)); + __asm__ __volatile__("lgdt %0" : :"m" (cpu_gdt_descr[cpu])); + __asm__ __volatile__("lidt %0" : :"m" (idt_descr));/* * Delete NT
arch/i386/kernel/traps.c renamed from arch/i386/kernel/traps.c~lxdt +1 -1
@@ -783,7 +783,7 @@ void __init trap_init_f00f_bug(void)* it uses the read-only mapped virtual address. */ idt_descr.address =fix_to_virt (FIX_F00F_IDT ); - __asm__ __volatile__("lidt %0": "=m" (idt_descr)); + __asm__ __volatile__("lidt %0" : : "m" (idt_descr)); }#endif