mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: akpm <akpm@osdl.org>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] use "normalized" syntax for lgdt/lidt
Date: Mon, 22 Sep 2003 12:14:12 -0700	[thread overview]
Message-ID: <20030922121412.387ef46d.rddunlap@osdl.org> (raw)


Hi,
Generates same code, but uses asm syntax that matches other
locations in arch/i386/.

Please apply.

--
~Randy


patch_name:	lxdt_norm.patch
patch_version:	2003-09-22.12:21:55
author:		Randy.Dunlap <rddunlap@osdl.org>
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(-)

diff -Naurp ./arch/i386/kernel/cpu/common.c~lxdt ./arch/i386/kernel/cpu/common.c
--- ./arch/i386/kernel/cpu/common.c~lxdt	2003-09-22 08:45:09.000000000 -0700
+++ ./arch/i386/kernel/cpu/common.c	2003-09-22 12:05:57.000000000 -0700
@@ -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
diff -Naurp ./arch/i386/kernel/traps.c~lxdt ./arch/i386/kernel/traps.c
--- ./arch/i386/kernel/traps.c~lxdt	2003-09-22 08:45:12.000000000 -0700
+++ ./arch/i386/kernel/traps.c	2003-09-22 12:04:17.000000000 -0700
@@ -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
 

                 reply	other threads:[~2003-09-22 19:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030922121412.387ef46d.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®