cpu_vendor
char cpu_vendor[16] = { 0 }; /* CPU0's cpuid(0).e[bdc]x, \0 */
cpu_set_vendor(&cpu_info_primary, cpuid_level, cpu_vendor);
return (sysctl_rdstring(oldp, oldlenp, newp, cpu_vendor));
*rbx = *((uint32_t *)&cpu_vendor);
*rdx = *((uint32_t *)&cpu_vendor + 1);
*rcx = *((uint32_t *)&cpu_vendor + 2);
enum cpu_vendor ci_vendor; /* [I] mapped from cpuid(0) */
extern char cpu_vendor[];
if (strcmp(cpu_vendor, "AuthenticAMD") == 0 && family == 0x5 &&
if ((strcmp(cpu_vendor, "GenuineIntel") != 0) &&
(strcmp(cpu_vendor, "AuthenticAMD") != 0)) {
if (strcmp(cpu_vendor, "GenuineIntel") == 0 &&
if (strcmp(cpu_vendor, "AuthenticAMD") == 0) {
if (!strncmp(cpu_vendor,
if (cpu_vendor[0] != '\0')
vendorname = &cpu_vendor[0];
vendor = cpup->cpu_vendor;
if (strcmp(cpu_vendor, "AuthenticAMD") == 0 &&
} else if (strcmp(cpu_vendor, "GenuineIntel") == 0 &&
if (!strcmp(cpu_vendor, "GenuineIntel") &&
if (!strcmp(cpu_vendor, "AuthenticAMD")) {
if (!strcmp(cpu_vendor, "GenuineIntel") &&
return (sysctl_rdstring(oldp, oldlenp, newp, cpu_vendor));
if (strcmp(cpu_vendor, "AuthenticAMD") == 0 &&
} else if (((strcmp(cpu_vendor, "GenuineIntel") == 0) ||
(strcmp(cpu_vendor, "CentaurHauls") == 0) ||
(strcmp(cpu_vendor, "AuthenticAMD") == 0)) &&
pctr_isamd = (strcmp(cpu_vendor, "AuthenticAMD") == 0);
pctr_isintel = (strcmp(cpu_vendor, "GenuineIntel") == 0);
if (strcmp(cpu_vendor, "GenuineIntel") == 0)
else if (strcmp(cpu_vendor, "AuthenticAMD") == 0)
int cpu_vendor;
extern char cpu_vendor[]; /* note: NOT nul-terminated */
cpu_vendor, cpu_family, cpu_model, cpu_stepping);
static char cpu_vendor[13]; /* 12 chars plus NUL term */
bcopy(®s[1], cpu_vendor, sizeof(regs[1]));
bcopy(®s[3], cpu_vendor + 4, sizeof(regs[3]));
bcopy(®s[2], cpu_vendor + 8, sizeof(regs[2]));
cpu_vendor[sizeof(cpu_vendor) - 1] = '\0';
strcmp(cpu_vendor, "GenuineIntel") == 0) {
strcmp(cpu_vendor, "GenuineIntel") == 0) {
if (strcmp(cpu_vendor, "GenuineIntel") == 0 &&
if (strcmp(cpu_vendor, "GenuineIntel") == 0)