]> xenbits.xensource.com Git - xen.git/commitdiff
x86: fix asm() constraint for GS selector update
authorJan Beulich <jbeulich@suse.com>
Thu, 16 Nov 2017 10:59:55 +0000 (11:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 16 Nov 2017 10:59:55 +0000 (11:59 +0100)
Exception fixup code may alter the operand, which ought to be reflected
in the constraint.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 65ab53de34851243fb7793ebf12fd92a65f84ddd
master date: 2017-10-27 13:49:10 +0100

xen/arch/x86/x86_64/mm.c

index e07e69e3bfc6ad93ae1dbd601761a968d4f8e210..6c39246d1141562db060f31eedb1120cc3aed4ea 100644 (file)
@@ -1064,7 +1064,7 @@ long do_set_segment_base(unsigned int which, unsigned long base)
             "     jmp  1b             \n"
             ".previous                \n"
             _ASM_EXTABLE(1b, 2b)
-            : : "r" (base&0xffff) );
+            : "+r" (base) );
         break;
 
     default: