All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] small adjustment to asm constraints for c/s 19400
Date: Fri, 27 Mar 2009 16:35:50 +0000	[thread overview]
Message-ID: <49CD0E76.76E4.0078.0@novell.com> (raw)

Properly indicate the variable that the asm writes to, and allow
compiler more freedom in selecting a suitable input operand for the ltr
instruction.

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 2009-03-27.orig/xen/arch/x86/traps.c	2009-03-24 09:04:02.000000000 +0100
+++ 2009-03-27/xen/arch/x86/traps.c	2009-03-27 10:10:57.000000000 +0100
@@ -3048,8 +3048,8 @@ void load_TR(void)
 
     /* Switch to non-compat GDT (which has B bit clear) to execute LTR. */
     asm volatile (
-        "sgdt %1; lgdt %2; ltr %%ax; lgdt %1"
-        : : "a" (TSS_ENTRY << 3), "m" (old_gdt), "m" (tss_gdt) : "memory" );
+        "sgdt %0; lgdt %2; ltr %w1; lgdt %0"
+        : "=m" (old_gdt) : "rm" (TSS_ENTRY << 3), "m" (tss_gdt) : "memory" );
 }
 
 void __devinit percpu_traps_init(void)

             reply	other threads:[~2009-03-27 16:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-27 16:35 Jan Beulich [this message]
2009-03-30  4:45 ` [PATCH] small adjustment to asm constraints for c/s 19400 Lu, Guanqun
2009-03-30  6:42   ` [PATCH] small adjustment to asm constraints for c/s19400 Jan Beulich
2009-03-30  8:58     ` Lu, Guanqun
2009-03-30  8:45   ` [PATCH] small adjustment to asm constraints for c/s 19400 Keir Fraser
2009-03-30  8:56     ` Lu, Guanqun
2009-03-30  9:13       ` [PATCH] small adjustment to asm constraints for c/s19400 Jan Beulich
2009-03-31  8:54         ` Lu, Guanqun
2009-03-31  9:05           ` Tian, Kevin
2009-03-31  9:24           ` [PATCH] small adjustment to asm constraints forc/s19400 Jan Beulich
2009-03-31  9:26             ` Tian, Kevin
2009-03-31  9:40               ` Jan Beulich
2009-03-31  9:47             ` Tian, Kevin
2009-03-31 10:15               ` Jan Beulich
2009-03-31 10:21                 ` Tian, Kevin
2009-03-31 10:54                   ` [PATCH] small adjustment to asm constraintsforc/s19400 Jan Beulich
2009-03-31 11:09                     ` Tian, Kevin
2009-03-31 11:30                       ` Jan Beulich
2009-03-31 11:35                         ` Tian, Kevin

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=49CD0E76.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.