ia64/xen-unstable

changeset 3936:da55822ba1b5

bitkeeper revision 1.1236.1.28 (421f91083aQi4zkZChMBDS8J0jxjqw)

Avoid clobbering EBX. Without this, it doesn't compile with gcc 3.4
Signed-off-by: bin.ren@cl.cam.ac.uk
author bren@br260.wolfson.cam.ac.uk
date Fri Feb 25 20:56:40 2005 +0000 (2005-02-25)
parents 3c5d6f364349
children d8cf61e99a52
files tools/libxc/xc_vmx_build.c
line diff
     1.1 --- a/tools/libxc/xc_vmx_build.c	Fri Feb 25 18:37:31 2005 +0000
     1.2 +++ b/tools/libxc/xc_vmx_build.c	Fri Feb 25 20:56:40 2005 +0000
     1.3 @@ -465,10 +465,10 @@ int vmx_identify(void)
     1.4  {
     1.5      int eax, ecx;
     1.6  
     1.7 -    __asm__ __volatile__ ("cpuid" 
     1.8 +    __asm__ __volatile__ ("pushl %%ebx; cpuid; popl %%ebx" 
     1.9  			  : "=a" (eax), "=c" (ecx) 
    1.10  			  : "0" (1) 
    1.11 -			  : "bx", "dx");
    1.12 +			  : "dx");
    1.13      if (!(ecx & VMX_FEATURE_FLAG)) {
    1.14          return -1;
    1.15      }