Merge pull request 'Added CPU::GetCacheLineSize() definition for Windows.' (#16) from NetChannels into main

Reviewed-on: #16
This commit is contained in:
Karutoh 2025-03-25 16:50:40 -07:00
commit ae414c5c99

View File

@ -6,6 +6,7 @@ global ?GetExtFeatureBits_1@CPU@ehs@@SAIXZ
global ?GetExtFeatureBits_2@CPU@ehs@@SAKXZ
global ?GetExtFeatureBits_3@CPU@ehs@@SAKXZ
global ?GetBrand@CPU@ehs@@SAXPEAD@Z
global ?GetCacheLineSize@CPU@ehs@@SAEXZ
section .text
?GetManufacturer@CPU@ehs@@SAXPEAD@Z:
@ -124,4 +125,17 @@ section .text
POP RBX
RET
?GetCacheLineSize@CPU@ehs@@SAEXZ:
PUSH RBX
MOV EAX, 0x80000006
CPUID
XOR EAX, EAX
MOV AL, CL
POP RBX
RET