Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/cpuctl/arch Identify AMD Family 11h. From PR bin/41...
details: https://anonhg.NetBSD.org/src/rev/b3c37588cce5
branches: trunk
changeset: 764761:b3c37588cce5
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue May 03 09:06:22 2011 +0000
description:
Identify AMD Family 11h. From PR bin/41188 by FUKAUMI Naoki.
diffstat:
usr.sbin/cpuctl/arch/i386.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r a7d4a705adee -r b3c37588cce5 usr.sbin/cpuctl/arch/i386.c
--- a/usr.sbin/cpuctl/arch/i386.c Tue May 03 08:36:15 2011 +0000
+++ b/usr.sbin/cpuctl/arch/i386.c Tue May 03 09:06:22 2011 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index