Call it an AMD64 Processor, not a Hammer. Also, it seems that the cpuid

model numbers are wider than I first thought.

Approved by: re (blanket amd64/*)
This commit is contained in:
peter 2003-05-11 23:01:04 +00:00
parent 756ca1f04c
commit 581fa87ddd

View File

@ -129,9 +129,9 @@ printcpuinfo(void)
* (also describes ``Features'' encodings.
*/
strcpy(cpu_model, "AMD ");
switch (cpu_id & 0xFF0) {
switch (cpu_id & 0xF00) {
case 0xf00:
strcat(cpu_model, "Hammer");
strcat(cpu_model, "AMD64 Processor");
break;
default:
strcat(cpu_model, "Unknown");