ref: 02e4bf6e9d9d836ff817b0e33fd6bf6b476ce738
parent: ed8081022b8adbcffb18fd2129d5c0f6f278604d
author: volvet <[email protected]>
date: Thu Jan 9 07:31:13 EST 2014
fix UNIX64 and WIN64: use ecx as input param
--- a/codec/common/cpuid.asm
+++ b/codec/common/cpuid.asm
@@ -85,7 +85,7 @@
push rdx
mov eax, ecx
- mov ecx, r9d
+ mov rcx, [r9]
cpuid
mov [r9], ecx
mov [r8], ebx
@@ -103,7 +103,8 @@
push rcx
push rdx
- mov eax, edi
+ mov eax, edi
+ mov rcx, [rcx]
cpuid
mov [r8], edx
pop rdx