diff --git a/src/system/CPU_MSVC_AMD64.asm b/src/system/CPU_MSVC_AMD64.asm index 67faf9c..38ae717 100644 --- a/src/system/CPU_MSVC_AMD64.asm +++ b/src/system/CPU_MSVC_AMD64.asm @@ -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 \ No newline at end of file