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 Decode Intel Hybrid Information Enumera...
details: https://anonhg.NetBSD.org/src/rev/a228857aaa32
branches: trunk
changeset: 359875:a228857aaa32
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Sat Jan 29 08:20:45 2022 +0000
description:
Decode Intel Hybrid Information Enumeration (CPUID Fn0000_001a).
diffstat:
usr.sbin/cpuctl/arch/i386.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r a82b6cbce7d9 -r a228857aaa32 usr.sbin/cpuctl/arch/i386.c
--- a/usr.sbin/cpuctl/arch/i386.c Sat Jan 29 08:18:22 2022 +0000
+++ b/usr.sbin/cpuctl/arch/i386.c Sat Jan 29 08:20:45 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i386.c,v 1.126 2022/01/27 09:53:43 msaitoh Exp $ */
+/* $NetBSD: i386.c,v 1.127 2022/01/29 08:20:45 msaitoh 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.126 2022/01/27 09:53:43 msaitoh Exp $");
+__RCSID("$NetBSD: i386.c,v 1.127 2022/01/29 08:20:45 msaitoh Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -2257,6 +2257,18 @@
print_bits(cpuname, "Perfmon-edx",
CPUID_PERF_FLAGS3, descs[3]);
}
+ if (ci->ci_max_cpuid >= 0x1a) {
+ x86_cpuid(0x1a, descs);
+ if (descs[0] != 0) {
+ aprint_verbose("%s: Hybrid: Core type %02x, "
+ "Native Model ID %07x\n",
+ cpuname,
+ (uint8_t)__SHIFTOUT(descs[0],
+ CPUID_HYBRID_CORETYPE),
+ (uint32_t)__SHIFTOUT(descs[0],
+ CPUID_HYBRID_NATIVEID));
+ }
+ }
}
#ifdef INTEL_ONDEMAND_CLOCKMOD
Home |
Main Index |
Thread Index |
Old Index