Merge pull request #1030 from mstorsjo/cpuid-32bit-param

Don't load undefined bits into rcx before calling the cpuid instruction
This commit is contained in:
zhilwang 2014-06-30 10:05:26 +08:00
commit eb221eb3d1

View File

@ -81,7 +81,7 @@ WELS_EXTERN WelsCPUId
push rdx
mov eax, ecx
mov rcx, [r9]
mov ecx, [r9]
cpuid
mov [r9], ecx
mov [r8], ebx
@ -100,7 +100,7 @@ WELS_EXTERN WelsCPUId
push rdx
mov eax, edi
mov rcx, [rcx]
mov ecx, [rcx]
cpuid
mov [r8], edx
pop rdx