fixed CPUID extended Family/Model detection for modern CPUs

git-svn-id: svn://kolibrios.org@7676 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Artem Jerdev (art_zh) 2019-08-23 20:12:13 +00:00
parent e1a519a379
commit f16345a714

View File

@ -80,6 +80,15 @@ CODE
and ax, 0x0F0F
mov [CPU_fam], ah
mov [CPU_mod], al
mov eax, ecx
shr eax, 12
and eax, 0x0FFF0 ; Extended Family/Model bits
or [CPU_mod], al
mov al, [CPU_fam] ; will not work on AMD fam.20h -- fix it later!!
cmp al, 0x0F
jne @f
add [CPU_fam], ah
@@:
shr edx, 23
and dl, 1
mov [CPU_mmx], dl