Patch below allows the kernel (amd64) to detect CPU features (VIA PadLock, 
temperature sensors, etc.) on modern VIA Eden CPUs.

My apologies for the previous substandard overly-verbose message.



Index: sys/arch/amd64/amd64/identcpu.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/identcpu.c,v
retrieving revision 1.50
diff -u -p -r1.50 identcpu.c
--- sys/arch/amd64/amd64/identcpu.c     24 Aug 2013 23:45:31 -0000      1.50
+++ sys/arch/amd64/amd64/identcpu.c     26 Sep 2013 08:45:46 -0000
@@ -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,

Reply via email to