ia64/xen-unstable

changeset 19244:e5c696aaf2a6

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@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Mar 01 14:58:07 2009 +0000 (2009-03-01)
parents 226031d62fc5
children 6227bf629626 f8916c9bc149
files xen/arch/x86/hvm/vpic.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vpic.c	Sun Mar 01 14:50:04 2009 +0000
     1.2 +++ b/xen/arch/x86/hvm/vpic.c	Sun Mar 01 14:58:07 2009 +0000
     1.3 @@ -56,7 +56,7 @@ static int vpic_get_priority(struct hvm_
     1.4  
     1.5      /* prio = ffs(mask ROR vpic->priority_add); */
     1.6      asm ( "ror %%cl,%b1 ; bsf %1,%0"
     1.7 -          : "=r" (prio) : "r" ((uint32_t)mask), "c" (vpic->priority_add) );
     1.8 +          : "=r" (prio) : "q" ((uint32_t)mask), "c" (vpic->priority_add) );
     1.9      return prio;
    1.10  }
    1.11