]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
x86/shim: don't use 32-bit compare on boolean variable
authorJan Beulich <jbeulich@suse.com>
Thu, 1 Feb 2018 10:32:45 +0000 (11:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 1 Feb 2018 10:32:45 +0000 (11:32 +0100)
Current upstream gas silently assumes 32-bit operand size for most
operations where the size can't be inferred from an involved register
(my own one doesn't anymore, which is how I've noticed this). It is pure
luck that the 3 bytes following pvh_boot are currently padding ones.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/boot/head.S

index 3cb66fc06be3c535c9da2543ad4683b33767f322..63bc1b3621f9668f95084f499d4641aaac904ae2 100644 (file)
@@ -585,7 +585,7 @@ trampoline_setup:
         push    %eax                /* Magic number. */
         call    reloc
 #ifdef CONFIG_PVH_GUEST
-        cmp     $0, sym_fs(pvh_boot)
+        cmpb    $0, sym_fs(pvh_boot)
         je      1f
         mov     %eax, sym_fs(pvh_start_info_pa)
         jmp     2f