Xorg: fix for cpuid
This commit is contained in:
parent
bdc7ac211f
commit
372f247713
@ -15,16 +15,22 @@ PROC cpuid_x86
|
|||||||
push ebx
|
push ebx
|
||||||
push ecx
|
push ecx
|
||||||
push edx
|
push edx
|
||||||
|
push edi
|
||||||
; cpuid
|
; cpuid
|
||||||
mov eax, [esp + 16]
|
mov eax, [esp + 20]
|
||||||
mov ecx, [esp + 20]
|
mov ecx, [esp + 24]
|
||||||
cpuid
|
cpuid
|
||||||
mov [esp + 24], eax
|
mov edi, [esp + 28]
|
||||||
mov [esp + 28], ebx
|
mov [edi], eax
|
||||||
mov [esp + 32], ecx
|
mov edi, [esp + 32]
|
||||||
mov [esp + 36], edx
|
mov [edi], ebx
|
||||||
|
mov edi, [esp + 36]
|
||||||
|
mov [edi], ecx
|
||||||
|
mov edi, [esp + 40]
|
||||||
|
mov [edi], edx
|
||||||
mov eax, 0
|
mov eax, 0
|
||||||
; restore registers
|
; restore registers
|
||||||
|
pop edi
|
||||||
pop edx
|
pop edx
|
||||||
pop ecx
|
pop ecx
|
||||||
pop ebx
|
pop ebx
|
||||||
|
Loading…
Reference in New Issue
Block a user