# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1235919487 0
# Node ID e5c696aaf2a6e8805231c0c0f1414560262e7005
# Parent 226031d62fc53d92df1aa7ba5565e887fa925318
x86, hvm: gcc44 build fix.
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.
From: Gerd Hoffmann <kraxel@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
xen/arch/x86/hvm/vpic.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 226031d62fc5 -r e5c696aaf2a6 xen/arch/x86/hvm/vpic.c
--- a/xen/arch/x86/hvm/vpic.c Sun Mar 01 14:50:04 2009 +0000
+++ b/xen/arch/x86/hvm/vpic.c Sun Mar 01 14:58:07 2009 +0000
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|