Added CPU::GetCacheLineSize() definition for Windows. #16

Merged
Karutoh merged 1 commits from NetChannels into main 2025-03-25 16:50:40 -07:00

View File

@ -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:
@ -124,4 +125,17 @@ section .text
POP RBX POP RBX
RET
?GetCacheLineSize@CPU@ehs@@SAEXZ:
PUSH RBX
MOV EAX, 0x80000006
CPUID
XOR EAX, EAX
MOV AL, CL
POP RBX
RET RET