Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/oea Fix fmttab value for L2CR_L2PE (parity ...



details:   https://anonhg.NetBSD.org/src/rev/f0a02e837fe0
branches:  trunk
changeset: 323456:f0a02e837fe0
user:      uwe <uwe%NetBSD.org@localhost>
date:      Fri Jun 15 23:11:39 2018 +0000

description:
Fix fmttab value for L2CR_L2PE (parity enabled) so that we don't print
self-contradictory "no parity parity enabled".

diffstat:

 sys/arch/powerpc/oea/cpu_subr.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 26ec6a9acb50 -r f0a02e837fe0 sys/arch/powerpc/oea/cpu_subr.c
--- a/sys/arch/powerpc/oea/cpu_subr.c   Fri Jun 15 22:40:33 2018 +0000
+++ b/sys/arch/powerpc/oea/cpu_subr.c   Fri Jun 15 23:11:39 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.96 2018/06/08 23:40:44 macallan Exp $   */
+/*     $NetBSD: cpu_subr.c,v 1.97 2018/06/15 23:11:39 uwe Exp $        */
 
 /*-
  * Copyright (c) 2001 Matt Thomas.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.96 2018/06/08 23:40:44 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.97 2018/06/15 23:11:39 uwe Exp $");
 
 #include "opt_ppcparam.h"
 #include "opt_ppccache.h"
@@ -97,7 +97,7 @@
        { L2CR_L2DO|L2CR_L2IO, L2CR_L2DO|L2CR_L2IO, " locked" },
        { L2CR_L2E, ~0, " 256KB L2 cache" },
        { L2CR_L2PE, 0, " no parity" },
-       { L2CR_L2PE, ~0, " parity enabled" },
+       { L2CR_L2PE, L2CR_L2PE, " parity enabled" },
        { 0, 0, NULL }
 };
 
@@ -108,7 +108,7 @@
        { L2CR_L2DO|L2CR_L2IO, L2CR_L2DO|L2CR_L2IO, " locked" },
        { L2CR_L2E, ~0, " 1MB L2 cache" },
        { L2CR_L2PE, 0, " no parity" },
-       { L2CR_L2PE, ~0, " parity enabled" },
+       { L2CR_L2PE, L2CR_L2PE, " parity enabled" },
        { 0, 0, NULL }
 };
 
@@ -119,7 +119,7 @@
        { L2CR_L2DO|L2CR_L2IO, L2CR_L2DO|L2CR_L2IO, " locked" },
        { L2CR_L2E, ~0, " 512KB L2 cache" },
        { L2CR_L2PE, 0, " no parity" },
-       { L2CR_L2PE, ~0, " parity enabled" },
+       { L2CR_L2PE, L2CR_L2PE, " parity enabled" },
        { 0, 0, NULL }
 };
 



Home | Main Index | Thread Index | Old Index