CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2024/04/02 20:01:21
Modified files:
sys/arch/amd64/amd64: cacheinfo.c cpu.c identcpu.c lapic.c
machdep.c mtrr.c pctr.c tsc.c ucode.c
sys/arch/amd64/include: cpu.h
Log message:
Add ci_cpuid_level and ci_vendor holding the per-CPU basic cpuid
level and a numeric mapping of the cpu vendor, both from CPUID(0).
Convert the general use of strcmp(cpu_vendor) to simple numeric
tests of ci_vendor. Track the minimum of all ci_cpuid_level in the
cpuid_level global and continue to use that for what we vmm exposes.
AMD testing help matthieu@ krw@
ok miod@ deraadt@ cheloha@