Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/x86/identcpu.c
Show First 20 Lines • Show All 1,602 Lines • ▼ Show 20 Lines | if (identblue() == IDENTBLUE_IBMCPU) { | ||||
cpu_vendor_id = CPU_VENDOR_IBM; | cpu_vendor_id = CPU_VENDOR_IBM; | ||||
cpu = CPU_BLUE; | cpu = CPU_BLUE; | ||||
return; | return; | ||||
} | } | ||||
} | } | ||||
#endif | #endif | ||||
} | } | ||||
int | |||||
pti_get_default(void) | |||||
{ | |||||
if (strcmp(cpu_vendor, AMD_VENDOR_ID) == 0) | |||||
return (0); | |||||
return (1); | |||||
} | |||||
static u_int | static u_int | ||||
find_cpu_vendor_id(void) | find_cpu_vendor_id(void) | ||||
{ | { | ||||
int i; | int i; | ||||
for (i = 0; i < nitems(cpu_vendors); i++) | for (i = 0; i < nitems(cpu_vendors); i++) | ||||
if (strcmp(cpu_vendor, cpu_vendors[i].vendor) == 0) | if (strcmp(cpu_vendor, cpu_vendors[i].vendor) == 0) | ||||
return (cpu_vendors[i].vendor_id); | return (cpu_vendors[i].vendor_id); | ||||
▲ Show 20 Lines • Show All 859 Lines • Show Last 20 Lines |