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:
commit
eb221eb3d1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user