Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Fix procfs_machdep.c rev. 1.143. Print CPUI...
details: https://anonhg.NetBSD.org/src/rev/fc7103048727
branches: trunk
changeset: 359914:fc7103048727
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Jan 31 06:54:50 2022 +0000
description:
Fix procfs_machdep.c rev. 1.143. Print CPUID 0x00000007:1 %eax correctly.
diffstat:
sys/arch/x86/x86/procfs_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4e014d6c8b1c -r fc7103048727 sys/arch/x86/x86/procfs_machdep.c
--- a/sys/arch/x86/x86/procfs_machdep.c Sun Jan 30 19:49:30 2022 +0000
+++ b/sys/arch/x86/x86/procfs_machdep.c Mon Jan 31 06:54:50 2022 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index