Browse Source

cpuid instruction clobbers eax/ebx/ecx/edx

0.8
Gavin Andresen 14 years ago
parent
commit
c90ea2bd6d
  1. 2
      main.cpp

2
main.cpp

@ -3127,7 +3127,7 @@ void CallCPUID(int in, int& aret, int& cret) @@ -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;

Loading…
Cancel
Save