From e44a5f7ac2b14755cdc3dc5f0f1eb02788eea6d9 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 26 Sep 2013 14:38:52 +0000 Subject: Use the cpuid vendor string instead of the model string when enabling VIA specific amd64 code. Makes the code work with Eden X2 processors which have the same model/family as a Nano but don't claim to be one in the model string. from bytevolcano at Safe-mail.net --- sys/arch/amd64/amd64/identcpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/amd64/amd64/identcpu.c b/sys/arch/amd64/amd64/identcpu.c index 99c2028fc98..d924afb2980 100644 --- a/sys/arch/amd64/amd64/identcpu.c +++ b/sys/arch/amd64/amd64/identcpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identcpu.c,v 1.50 2013/08/24 23:45:31 mlarkin Exp $ */ +/* $OpenBSD: identcpu.c,v 1.51 2013/09/26 14:38:51 jsg Exp $ */ /* $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */ /* @@ -568,7 +568,7 @@ identifycpu(struct cpu_info *ci) if (!strcmp(cpu_vendor, "AuthenticAMD")) amd64_errata(ci); - if (strncmp(mycpu_model, "VIA Nano processor", 18) == 0) { + if (!strcmp(cpu_vendor, "CentaurHauls")) { ci->cpu_setup = via_nano_setup; #ifndef SMALL_KERNEL strlcpy(ci->ci_sensordev.xname, ci->ci_dev->dv_xname, -- cgit v1.2.3