From: BitKeeper B. <ri...@su...> - 2005-02-26 11:18:38
|
ChangeSet 1.1264, 2005/02/25 20:56:40+00:00, br...@br... Avoid clobbering EBX. Without this, it doesn't compile with gcc 3.4 Signed-off-by: bi...@cl... xc_vmx_build.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/tools/libxc/xc_vmx_build.c b/tools/libxc/xc_vmx_build.c --- a/tools/libxc/xc_vmx_build.c 2005-02-26 06:02:26 -05:00 +++ b/tools/libxc/xc_vmx_build.c 2005-02-26 06:02:26 -05:00 @@ -465,10 +465,10 @@ { int eax, ecx; - __asm__ __volatile__ ("cpuid" + __asm__ __volatile__ ("pushl %%ebx; cpuid; popl %%ebx" : "=a" (eax), "=c" (ecx) : "0" (1) - : "bx", "dx"); + : "dx"); if (!(ecx & VMX_FEATURE_FLAG)) { return -1; } |