Module Name: src
Committed By: jruoho
Date: Tue May 3 09:06:22 UTC 2011
Modified Files:
src/usr.sbin/cpuctl/arch: i386.c
Log Message:
Identify AMD Family 11h. From PR bin/41188 by FUKAUMI Naoki.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.sbin/cpuctl/arch/i386.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/cpuctl/arch/i386.c
diff -u src/usr.sbin/cpuctl/arch/i386.c:1.24 src/usr.sbin/cpuctl/arch/i386.c:1.25
--- src/usr.sbin/cpuctl/arch/i386.c:1.24 Sat Feb 19 13:34:38 2011
+++ src/usr.sbin/cpuctl/arch/i386.c Tue May 3 09:06:22 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: i386.c,v 1.24 2011/02/19 13:34:38 jmcneill Exp $ */
+/* $NetBSD: i386.c,v 1.25 2011/05/03 09:06:22 jruoho Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: i386.c,v 1.24 2011/02/19 13:34:38 jmcneill Exp $");
+__RCSID("$NetBSD: i386.c,v 1.25 2011/05/03 09:06:22 jruoho Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -967,6 +967,16 @@
break;
}
break;
+ case 0x02:
+ switch (model) {
+ case 0x03:
+ ret = "Family 11h";
+ break;
+ default:
+ ret = "Unknown AMD64 CPU";
+ break;
+ }
+ break;
}
return ret;