aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-01-22 16:04:07 -0500
committerGavin Andresen <gavinandresen@gmail.com>2011-01-22 16:04:07 -0500
commitc90ea2bd6dc76d4b14f747f818ca18b788aa035e (patch)
tree1b338ec33f3846b97fd703e9e0f096432dc25f93
parentfdec7fe2035f118237d30c314a27dae0624822b6 (diff)
cpuid instruction clobbers eax/ebx/ecx/edx
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index d19cbeff98..216e245d0a 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;