From c90ea2bd6dc76d4b14f747f818ca18b788aa035e Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Sat, 22 Jan 2011 16:04:07 -0500 Subject: [PATCH] cpuid instruction clobbers eax/ebx/ecx/edx --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d19cbeff9..216e245d0 100644 --- a/main.cpp +++ b/main.cpp @@ -3127,7 +3127,7 @@ void CallCPUID(int in, int& aret, int& cret) "mov %%ecx, %1;" // ecx into c :"=r"(a),"=r"(c) /* output */ :"r"(in) /* input */ - :"%eax","%ecx" /* clobbered register */ + :"%eax","%ebx","%ecx","%edx" /* clobbered register */ ); aret = a; cret = c;