Module Name: src
Committed By: msaitoh
Date: Wed Oct 12 10:25:41 UTC 2022
Modified Files:
src/sys/arch/x86/include: specialreg.h
Log Message:
Add CPUID Fn8000_001e Processor Topology Information.
To generate a diff of this commit:
cvs rdiff -u -r1.192 -r1.193 src/sys/arch/x86/include/specialreg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/include/specialreg.h
diff -u src/sys/arch/x86/include/specialreg.h:1.192 src/sys/arch/x86/include/specialreg.h:1.193
--- src/sys/arch/x86/include/specialreg.h:1.192 Thu Oct 6 00:22:16 2022
+++ src/sys/arch/x86/include/specialreg.h Wed Oct 12 10:25:41 2022
@@ -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