From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: gcc44 build fix Date: Tue, 24 Feb 2009 12:29:33 +0100 Message-ID: <49A3DA1D.3060207@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090205080506030505060208" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------090205080506030505060208 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------090205080506030505060208 Content-Type: text/plain; name="xen-gcc44-buildfix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xen-gcc44-buildfix.patch" 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; } --------------090205080506030505060208 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------090205080506030505060208--