cpuid instruction clobbers eax/ebx/ecx/edx

This commit is contained in:
Gavin Andresen 2011-01-22 16:04:07 -05:00
parent fdec7fe203
commit c90ea2bd6d
1 changed files with 1 additions and 1 deletions

View File

@ -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;