Added CPU::GetCacheLineSize() definition for Windows.
This commit is contained in:
parent
b44e55a92c
commit
9ab62d0545
@ -6,6 +6,7 @@ global ?GetExtFeatureBits_1@CPU@ehs@@SAIXZ
|
|||||||
global ?GetExtFeatureBits_2@CPU@ehs@@SAKXZ
|
global ?GetExtFeatureBits_2@CPU@ehs@@SAKXZ
|
||||||
global ?GetExtFeatureBits_3@CPU@ehs@@SAKXZ
|
global ?GetExtFeatureBits_3@CPU@ehs@@SAKXZ
|
||||||
global ?GetBrand@CPU@ehs@@SAXPEAD@Z
|
global ?GetBrand@CPU@ehs@@SAXPEAD@Z
|
||||||
|
global ?GetCacheLineSize@CPU@ehs@@SAEXZ
|
||||||
|
|
||||||
section .text
|
section .text
|
||||||
?GetManufacturer@CPU@ehs@@SAXPEAD@Z:
|
?GetManufacturer@CPU@ehs@@SAXPEAD@Z:
|
||||||
@ -125,3 +126,16 @@ section .text
|
|||||||
POP RBX
|
POP RBX
|
||||||
|
|
||||||
RET
|
RET
|
||||||
|
|
||||||
|
?GetCacheLineSize@CPU@ehs@@SAEXZ:
|
||||||
|
PUSH RBX
|
||||||
|
|
||||||
|
MOV EAX, 0x80000006
|
||||||
|
CPUID
|
||||||
|
|
||||||
|
XOR EAX, EAX
|
||||||
|
MOV AL, CL
|
||||||
|
|
||||||
|
POP RBX
|
||||||
|
|
||||||
|
RET
|
Loading…
x
Reference in New Issue
Block a user