From 201693cb1bc34b94409f96272a203a57b8ac9db0 Mon Sep 17 00:00:00 2001 From: scw Date: Thu, 10 Apr 2003 16:07:15 +0000 Subject: [PATCH] Re-read L2CR after enabling the L2 cache to avoid returning without printing the cache details. --- sys/arch/powerpc/oea/cpu_subr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/powerpc/oea/cpu_subr.c b/sys/arch/powerpc/oea/cpu_subr.c index 2e16a4eab084..a3b36de44ae6 100644 --- a/sys/arch/powerpc/oea/cpu_subr.c +++ b/sys/arch/powerpc/oea/cpu_subr.c @@ -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 @@ cpu_config_l2cr(int pvr) /* * 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;