diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1996-08-10 08:04:24 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1996-08-10 08:04:24 +0000 |
| commit | 7c34c352e34a6f0a8753d57bba41288d87faa27d (patch) | |
| tree | 1a3618e0845727152455d2111fe6b9288f27caca | |
| parent | fb9e3ade6c800a20206bf6e1d77c02ba1dc87250 (diff) | |
Notes
| -rw-r--r-- | sys/amd64/amd64/identcpu.c | 16 | ||||
| -rw-r--r-- | sys/i386/i386/identcpu.c | 16 |
2 files changed, 30 insertions, 2 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index 5ae7c1fec5ab..4c49f3ee6f81 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: Id: machdep.c,v 1.193 1996/06/18 01:22:04 bde Exp - * $Id: identcpu.c,v 1.2 1996/08/02 21:15:47 bde Exp $ + * $Id: identcpu.c,v 1.3 1996/08/10 06:35:35 peter Exp $ */ #include <sys/param.h> @@ -148,6 +148,20 @@ identifycpu(void) break; } } + } else if (!strcmp(cpu_vendor,"AuthenticAMD")) { + cpu_model[0] = '\0'; + strcpy(cpu_model, "AMD "); + switch (cpu_id & 0xF0) { + case 0xE0: + strcat(cpu_model, "Am5x86 Write-Through"); + break; + case 0xF0: + strcat(cpu_model, "Am5x86 Write-Back"); + break; + default: + strcat(cpu_model, "Unknown"); + break; + } } #endif printf("%s (", cpu_model); diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index 5ae7c1fec5ab..4c49f3ee6f81 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: Id: machdep.c,v 1.193 1996/06/18 01:22:04 bde Exp - * $Id: identcpu.c,v 1.2 1996/08/02 21:15:47 bde Exp $ + * $Id: identcpu.c,v 1.3 1996/08/10 06:35:35 peter Exp $ */ #include <sys/param.h> @@ -148,6 +148,20 @@ identifycpu(void) break; } } + } else if (!strcmp(cpu_vendor,"AuthenticAMD")) { + cpu_model[0] = '\0'; + strcpy(cpu_model, "AMD "); + switch (cpu_id & 0xF0) { + case 0xE0: + strcat(cpu_model, "Am5x86 Write-Through"); + break; + case 0xF0: + strcat(cpu_model, "Am5x86 Write-Back"); + break; + default: + strcat(cpu_model, "Unknown"); + break; + } } #endif printf("%s (", cpu_model); |
