Skip to contentSkip to conversation

gcc44 build fix

PATCH Gerd Hoffmann 1 participant 1 message Feb 24, 2009 x86

lore
Share & tools
lore
#0 lore raw

Hi,

Broken constrain in inline asm. Bytewise access works with a, b, c, d registers only, thus "r" is wrong, it must be "q". gcc 4.4 tries to use the si register, which doesn't work and thus fails the build.

please apply,
Gerd

arch/x86/hvm/vpic.c renamed from arch/x86/hvm/vpic.c~ +1 -1
diff -up xen/arch/x86/hvm/vpic.c~ xen/arch/x86/hvm/vpic.c
@@ -56,7 +56,7 @@ static int vpic_get_priority(struct hvm_
 
     /* prio = ffs(mask ROR vpic->priority_add); */
     asm ( "ror %%cl,%b1 ; bsf %1,%0"
-          : "=r" (prio) : "r" ((uint32_t)mask), "c" (vpic->priority_add) );
+          : "=r" (prio) : "q" ((uint32_t)mask), "c" (vpic->priority_add) );
     return prio;
 }
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel