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 Re-read L2CR after enabling the L2 cach...



details:   https://anonhg.NetBSD.org/src/rev/0be12490ea3a
branches:  trunk
changeset: 545535:0be12490ea3a
user:      scw <scw%NetBSD.org@localhost>
date:      Thu Apr 10 16:07:15 2003 +0000

description:
Re-read L2CR after enabling the L2 cache to avoid returning without
printing the cache details.

diffstat:

 sys/arch/powerpc/oea/cpu_subr.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r fb855846fa0a -r 0be12490ea3a sys/arch/powerpc/oea/cpu_subr.c
--- a/sys/arch/powerpc/oea/cpu_subr.c   Thu Apr 10 15:36:54 2003 +0000
+++ b/sys/arch/powerpc/oea/cpu_subr.c   Thu Apr 10 16:07:15 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.7 2003/04/04 04:04:49 matt Exp $        */
+/*     $NetBSD: cpu_subr.c,v 1.8 2003/04/10 16:07:15 scw Exp $ */
 
 /*-
  * Copyright (c) 2001 Matt Thomas.
@@ -650,8 +650,10 @@
        /*
         * Configure L2 cache if not enabled.
         */
-       if ((l2cr & L2CR_L2E) == 0 && l2cr_config != 0)
+       if ((l2cr & L2CR_L2E) == 0 && l2cr_config != 0) {
                cpu_enable_l2cr(l2cr_config);
+               l2cr = mfspr(SPR_L2CR);
+       }
 
        if ((l2cr & L2CR_L2E) == 0)
                return;



Home | Main Index | Thread Index | Old Index