* gcc44 build fix
@ 2009-02-24 11:29 Gerd Hoffmann
0 siblings, 0 replies; only message in thread
From: Gerd Hoffmann @ 2009-02-24 11:29 UTC (permalink / raw)
To: Xen Development Mailing List
[-- Attachment #1: Type: text/plain, Size: 235 bytes --]
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
[-- Attachment #2: xen-gcc44-buildfix.patch --]
[-- Type: text/plain, Size: 515 bytes --]
diff -up xen/arch/x86/hvm/vpic.c~ xen/arch/x86/hvm/vpic.c
--- xen/arch/x86/hvm/vpic.c~ 2009-02-24 10:59:27.000000000 +0100
+++ xen/arch/x86/hvm/vpic.c 2009-02-24 12:20:46.000000000 +0100
@@ -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;
}
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-24 11:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-24 11:29 gcc44 build fix Gerd Hoffmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.