Module Name: src
Committed By: msaitoh
Date: Mon Jan 31 06:54:50 UTC 2022
Modified Files:
src/sys/arch/x86/x86: procfs_machdep.c
Log Message:
Fix procfs_machdep.c rev. 1.143. Print CPUID 0x00000007:1 %eax correctly.
To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/x86/x86/procfs_machdep.c
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/x86/procfs_machdep.c
diff -u src/sys/arch/x86/x86/procfs_machdep.c:1.43 src/sys/arch/x86/x86/procfs_machdep.c:1.44
--- src/sys/arch/x86/x86/procfs_machdep.c:1.43 Fri Jan 14 15:48:50 2022
+++ src/sys/arch/x86/x86/procfs_machdep.c Mon Jan 31 06:54:50 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_machdep.c,v 1.43 2022/01/14 15:48:50 msaitoh Exp $ */
+/* $NetBSD: procfs_machdep.c,v 1.44 2022/01/31 06:54:50 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.43 2022/01/14 15:48:50 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.44 2022/01/31 06:54:50 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -312,7 +312,7 @@ procfs_getonecpufeatures(struct cpu_info
if (ci->ci_max_cpuid >= 0x07) {
x86_cpuid2(0x07, 1, descs);
- procfs_getonefeatreg(descs[3], x86_features[12], p + diff,
+ procfs_getonefeatreg(descs[0], x86_features[12], p + diff,
left);
diff = last - *left;
}