From 66575b7b1251e5b81b877a02b89fd1e87415fa8a Mon Sep 17 00:00:00 2001 From: uwe Date: Sun, 16 Mar 2008 07:16:37 +0000 Subject: [PATCH] If we bother to report number of wired TLB entries we might as well do it correctly. --- sys/arch/sh3/sh3/mmu.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/arch/sh3/sh3/mmu.c b/sys/arch/sh3/sh3/mmu.c index 0299cd2355b8..74acd01a8a6a 100644 --- a/sys/arch/sh3/sh3/mmu.c +++ b/sys/arch/sh3/sh3/mmu.c @@ -1,4 +1,4 @@ -/* $NetBSD: mmu.c,v 1.16 2007/11/06 01:33:00 uwe Exp $ */ +/* $NetBSD: mmu.c,v 1.17 2008/03/16 07:16:37 uwe Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mmu.c,v 1.16 2007/11/06 01:33:00 uwe Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mmu.c,v 1.17 2008/03/16 07:16:37 uwe Exp $"); #include #include @@ -96,15 +96,17 @@ sh_mmu_information(void) #endif #ifdef SH4 if (CPU_IS_SH4) { + unsigned int urb; aprint_normal("cpu0: full-associative" " 4 ITLB, 64 UTLB entries\n"); r = _reg_read_4(SH4_MMUCR); + urb = (r & SH4_MMUCR_URB_MASK) >> SH4_MMUCR_URB_SHIFT; aprint_normal("cpu0: %s virtual storage mode," " SQ access: kernel%s," " wired %d\n", r & SH3_MMUCR_SV ? "single" : "multiple", r & SH4_MMUCR_SQMD ? "" : "/user", - (r & SH4_MMUCR_URB_MASK) >> SH4_MMUCR_URB_SHIFT); + urb ? 64 - urb : 0); } #endif }