[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86: small adjustment to asm constraints for c/s 19400
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1238501650 -3600 # Node ID cc4a2290c22487477a4ff5fbda05b349efb89319 # Parent 28a4dacea7ab38e1ea2276275c22835b5209e126 x86: small adjustment to asm constraints for c/s 19400 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@xxxxxxxxxx> --- xen/arch/x86/traps.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r 28a4dacea7ab -r cc4a2290c224 xen/arch/x86/traps.c --- a/xen/arch/x86/traps.c Tue Mar 31 13:12:35 2009 +0100 +++ b/xen/arch/x86/traps.c Tue Mar 31 13:14:10 2009 +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) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |