diff options
author | green <green@FreeBSD.org> | 1999-07-06 06:25:38 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-07-06 06:25:38 +0000 |
commit | 37964e09a91d005059b8094ac748eae8a0c50a22 (patch) | |
tree | 6319452d2d7db0ed9c99ee0766e6a1614b533f8e /sys/amd64 | |
parent | 43143c0b1711add25875f3f9fc21f9963c136f55 (diff) | |
download | FreeBSD-src-37964e09a91d005059b8094ac748eae8a0c50a22.zip FreeBSD-src-37964e09a91d005059b8094ac748eae8a0c50a22.tar.gz |
Add Centaur/IDT WinChip support.
Why in the world do people put breaks at the end of a switch's default case?
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/identcpu.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index f9e03c7..abafcf9 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: Id: machdep.c,v 1.193 1996/06/18 01:22:04 bde Exp - * $Id: identcpu.c,v 1.65 1999/06/24 20:08:56 jlemon Exp $ + * $Id: identcpu.c,v 1.68 1999/07/06 05:25:41 green Exp $ */ #include "opt_cpu.h" @@ -471,6 +471,18 @@ printcpuinfo(void) default: strcat(cpu_model, "Unknown"); } + } else if (strcmp(cpu_vendor, "CentaurHauls") == 0) { + strcpy(cpu_model, "IDT "); + switch (cpu_id & 0ff0) { + case 0x540: + strcat(cpu_model, "WinChip C6"); + break; + case 0x580: + strcat(cpu_model, "WinChip 2"); + break; + default: + strcat(cpu_model, "Unknown"); + } } else if (strcmp(cpu_vendor, "IBM") == 0) strcpy(cpu_model, "Blue Lightning CPU"); #endif @@ -524,6 +536,7 @@ printcpuinfo(void) if (strcmp(cpu_vendor, "GenuineIntel") == 0 || strcmp(cpu_vendor, "AuthenticAMD") == 0 || strcmp(cpu_vendor, "RiseRiseRise") == 0 || + strcmp(cpu_vendor, "CentaurHauls") == 0 || ((strcmp(cpu_vendor, "CyrixInstead") == 0) && ((cpu_id & 0xf00) > 0x500))) { printf(" Stepping = %u", cpu_id & 0xf); |