mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-26 00:26:52 +03:00
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:
parent
e1a519a379
commit
f16345a714
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user