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 s; backside; ; and report L2CR_L2DO & L...



details:   https://anonhg.NetBSD.org/src/rev/2f5949b34576
branches:  trunk
changeset: 544238:2f5949b34576
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Mar 15 07:22:46 2003 +0000

description:
s;backside;;   and report L2CR_L2DO & L2CR_L2IO

diffstat:

 sys/arch/powerpc/oea/cpu_subr.c |  19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r fa421072c0b2 -r 2f5949b34576 sys/arch/powerpc/oea/cpu_subr.c
--- a/sys/arch/powerpc/oea/cpu_subr.c   Sat Mar 15 07:21:02 2003 +0000
+++ b/sys/arch/powerpc/oea/cpu_subr.c   Sat Mar 15 07:22:46 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.3 2003/03/14 06:27:40 matt Exp $        */
+/*     $NetBSD: cpu_subr.c,v 1.4 2003/03/15 07:22:46 matt Exp $        */
 
 /*-
  * Copyright (c) 2001 Matt Thomas.
@@ -547,7 +547,7 @@
                        }
                        
                        if (l3cr & L3CR_L3E) {
-                               aprint_normal(", %cMB L3 backside cache at ",
+                               aprint_normal(", %cMB L3 cache at ",
                                   l3cr & L3CR_L3SIZ ? '2' : '1');
                                switch (l3cr & L3CR_L3CLK) {
                                case L3CLK_20:
@@ -608,6 +608,19 @@
                } else {
                        aprint_normal(" write-back");
                }
+               switch (l2cr & (L2CR_L2DO|L2CR_L2IO)) {
+               case L2CR_L2DO|L2CR_L2IO:
+                       aprint_normal(" locked");
+                       break;
+               case L2CR_L2DO:
+                       aprint_normal(" data-only");
+                       break;
+               case L2CR_L2IO:
+                       aprint_normal(" instruction-only");
+                       break;
+               case 0:
+                       break;
+               }
                switch (l2cr & L2CR_L2RAM) {
                case L2RAM_FLOWTHRU_BURST:
                        aprint_normal(" Flow-through synchronous burst SRAM");
@@ -624,7 +637,7 @@
 
                if (l2cr & L2CR_L2PE)
                        aprint_normal(" with parity");
-               aprint_normal(" backside cache");
+               aprint_normal(" L2 cache");
        } else
                aprint_normal(": L2 cache not enabled");
 



Home | Main Index | Thread Index | Old Index