Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/include Add CPUID Fn8000_001e Processor Topolog...
details: https://anonhg.NetBSD.org/src/rev/f3ac9f37a936
branches: trunk
changeset: 371805:f3ac9f37a936
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Oct 12 10:25:41 2022 +0000
description:
Add CPUID Fn8000_001e Processor Topology Information.
diffstat:
sys/arch/x86/include/specialreg.h | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 65dab10dbff3 -r f3ac9f37a936 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Wed Oct 12 07:56:46 2022 +0000
+++ b/sys/arch/x86/include/specialreg.h Wed Oct 12 10:25:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: specialreg.h,v 1.192 2022/10/06 00:22:16 msaitoh Exp $ */
+/* $NetBSD: specialreg.h,v 1.193 2022/10/12 10:25:41 msaitoh Exp $ */
/*
* Copyright (c) 2014-2020 The NetBSD Foundation, Inc.
@@ -886,6 +886,22 @@
*/
/*
+ * AMD Processor Topology Information.
+ * CPUID Fn8000_001e
+ * %eax: Extended APIC ID.
+ * %ebx: Core Identifiers.
+ * %ecx: Node Identifiers.
+ */
+
+/* %ebx */
+#define CPUID_AMD_PROCT_COREID __BITS(7,0) /* Core ID */
+#define CPUID_AMD_PROCT_THREADS_PER_CORE __BITS(15,8) /* Threads/Core - 1 */
+
+/* %ecx */
+#define CPUID_AMD_PROCT_NODEID __BITS(7,0) /* Node ID */
+#define CPUID_AMD_PROCT_NODE_PER_PROCESSOR __BITS(10,8) /* Node/Processor -1 */
+
+/*
* AMD Encrypted Memory Capabilities.
* CPUID Fn8000_001f
* %eax: flags
Home |
Main Index |
Thread Index |
Old Index