mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
I hate noticing bugs after committing. :-(
ALWAYS set up the CPU base identity string. THEN optionally add features.
This commit is contained in:
parent
efccc7dc25
commit
4ebf3fc96b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128063
@ -546,10 +546,10 @@ printcpuinfo(void)
|
||||
strcpy(cpu_model, "VIA C3 Ezra-T");
|
||||
break;
|
||||
case 0x690:
|
||||
strcpy(cpu_model, "VIA C3 Nehemiah");
|
||||
do_cpuid(0xc0000000, regs);
|
||||
if (regs[0] == 0xc0000001) {
|
||||
do_cpuid(0xc0000001, regs);
|
||||
strcpy(cpu_model, "VIA C3 Nehemiah");
|
||||
if ((cpu_id & 0xf) >= 3)
|
||||
if ((regs[3] & 0x0c) == 0x0c)
|
||||
strcat(cpu_model, "+RNG");
|
||||
|
Loading…
Reference in New Issue
Block a user