Try: save the patch as patch-identcpu cp patch-identcpu /usr/src/sys/i386/i386 cd /usr/src/sys/i386/i386 patch < patch-identcpu then compile your kernel and reboot. I expect to see your CPU ID as: "garbage chars from cpuid" Please try and see whether this is the case. -- Bin --- identcpu.c Fri Mar 5 03:28:32 2004 +++ identcpu.c.new Tue Mar 9 23:11:53 2004 _at__at_ -572,8 +572,17 _at__at_ brand = cpu_brand; while (*brand == ' ') ++brand; - if (*brand != '\0') - strcpy(cpu_model, brand); + if (*brand != '\0') { + char *c; + for (c = brand; c < cpu_brand+48 && *c; c++) + if (*c < '!' || *c > '~') + break; + + if (c < cpu_brand+48 && *c) + strcpy(cpu_model, "garbage chars from cpuid"); + else + strcpy(cpu_model, brand); + } #endifReceived on Tue Mar 09 2004 - 14:21:06 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:46 UTC