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 Exclude descriptor 0xff of CPUID leaf 2...



details:   https://anonhg.NetBSD.org/src/rev/519313ec7ac8
branches:  trunk
changeset: 797053:519313ec7ac8
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jul 03 04:11:37 2014 +0000

description:
Exclude descriptor 0xff of CPUID leaf 2. 0xff means the cacheinfo is in leaf 4.

diffstat:

 usr.sbin/cpuctl/arch/i386.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a61a4d036c6c -r 519313ec7ac8 usr.sbin/cpuctl/arch/i386.c
--- a/usr.sbin/cpuctl/arch/i386.c       Wed Jul 02 22:35:10 2014 +0000
+++ b/usr.sbin/cpuctl/arch/i386.c       Thu Jul 03 04:11:37 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i386.c,v 1.55 2014/05/27 04:18:00 msaitoh Exp $        */
+/*     $NetBSD: i386.c,v 1.56 2014/07/03 04:11:37 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.55 2014/05/27 04:18:00 msaitoh Exp $");
+__RCSID("$NetBSD: i386.c,v 1.56 2014/07/03 04:11:37 msaitoh Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -997,7 +997,7 @@
                                    desc);
                                if (cai != NULL)
                                        ci->ci_cinfo[cai->cai_index] = *cai;
-                               else if (verbose)
+                               else if ((verbose != 0) && (desc != 0xff))
                                        printf("Unknown cacheinfo desc %02x\n",
                                            desc);
                        }



Home | Main Index | Thread Index | Old Index