Changeset View
Changeset View
Standalone View
Standalone View
stand/i386/libi386/bootinfo64.c
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | return (0); | ||||
vendor[0] = regs[1]; | vendor[0] = regs[1]; | ||||
vendor[1] = regs[3]; | vendor[1] = regs[3]; | ||||
vendor[2] = regs[2]; | vendor[2] = regs[2]; | ||||
cpu_vendor = (char *)vendor; | cpu_vendor = (char *)vendor; | ||||
/* Check for vendors that support AMD features. */ | /* Check for vendors that support AMD features. */ | ||||
if (strncmp(cpu_vendor, INTEL_VENDOR_ID, 12) != 0 && | if (strncmp(cpu_vendor, INTEL_VENDOR_ID, 12) != 0 && | ||||
strncmp(cpu_vendor, AMD_VENDOR_ID, 12) != 0 && | strncmp(cpu_vendor, AMD_VENDOR_ID, 12) != 0 && | ||||
strncmp(cpu_vendor, HYGON_VENDOR_ID, 12) != 0 && | |||||
strncmp(cpu_vendor, CENTAUR_VENDOR_ID, 12) != 0) | strncmp(cpu_vendor, CENTAUR_VENDOR_ID, 12) != 0) | ||||
return (0); | return (0); | ||||
/* Has to support AMD features. */ | /* Has to support AMD features. */ | ||||
do_cpuid(0x80000000, regs); | do_cpuid(0x80000000, regs); | ||||
if (!(regs[0] >= 0x80000001)) | if (!(regs[0] >= 0x80000001)) | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |