Re-read L2CR after enabling the L2 cache to avoid returning without

printing the cache details.
This commit is contained in:
scw 2003-04-10 16:07:15 +00:00
parent ca16636def
commit 201693cb1b
1 changed files with 4 additions and 2 deletions

View File

@ -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;