summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-08-10 08:04:24 +0000
committerpeter <peter@FreeBSD.org>1996-08-10 08:04:24 +0000
commit501343eb76876159a8590e7d0255bc94305b987c (patch)
tree1a3618e0845727152455d2111fe6b9288f27caca /sys
parenteda223150ae28327a1899db37fe184b8b8942e70 (diff)
downloadFreeBSD-src-501343eb76876159a8590e7d0255bc94305b987c.zip
FreeBSD-src-501343eb76876159a8590e7d0255bc94305b987c.tar.gz
Add recognition for the AMD 5x86 CPU models.
Submitted by: A JOSEPH KOSHY <koshy@india.hp.com>
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/identcpu.c16
-rw-r--r--sys/i386/i386/identcpu.c16
2 files changed, 30 insertions, 2 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c
index 5ae7c1f..4c49f3e 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 5ae7c1f..4c49f3e 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);
OpenPOWER on IntegriCloud