ia64/xen-unstable

changeset 9649:bdec77028194

fix bug #609 - error: PIC register `bx' clobbered in `asm'

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vhanquez@kneesa.uk.xensource.com
date Mon Apr 10 14:51:10 2006 +0000 (2006-04-10)
parents 07af1b34d4c4
children c83da0012e87
files tools/ioemu/hw/vga.c
line diff
     1.1 --- a/tools/ioemu/hw/vga.c	Mon Apr 10 14:47:51 2006 +0100
     1.2 +++ b/tools/ioemu/hw/vga.c	Mon Apr 10 14:51:10 2006 +0000
     1.3 @@ -1369,10 +1369,10 @@ static inline unsigned int cpuid_edx(uns
     1.4  {
     1.5      unsigned int eax, edx;
     1.6  
     1.7 -    __asm__("cpuid"
     1.8 +    __asm__("pushl %%ebx; cpuid; popl %%ebx"
     1.9              : "=a" (eax), "=d" (edx)
    1.10              : "0" (op)
    1.11 -            : "bx", "cx");
    1.12 +            : "cx");
    1.13  
    1.14      return edx;
    1.15  }