diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-06-02 05:35:18 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-06-02 05:35:18 +0000 |
commit | 62809172459afd3060888e83c535aa9632540d0a (patch) | |
tree | f8bb48acf45593042127105367fa128a77493a4f /sys/arch | |
parent | 6542d9b0585d80e83fd1ad58524389c6f819ef30 (diff) |
- correctly report the number of wired tlb entries
from uwe@netbsd
ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sh/sh/mmu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sh/sh/mmu.c b/sys/arch/sh/sh/mmu.c index b909f692c78..5cc8065d230 100644 --- a/sys/arch/sh/sh/mmu.c +++ b/sys/arch/sh/sh/mmu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mmu.c,v 1.3 2008/06/26 05:42:13 ray Exp $ */ +/* $OpenBSD: mmu.c,v 1.4 2010/06/02 05:35:17 jasper Exp $ */ /* $NetBSD: mmu.c,v 1.15 2006/02/12 02:30:55 uwe Exp $ */ /*- @@ -86,13 +86,15 @@ sh_mmu_information(void) #endif #ifdef SH4 if (CPU_IS_SH4) { + unsigned int urb; printf("cpu0: fully-associative 4 ITLB, 64 UTLB entries\n"); r = _reg_read_4(SH4_MMUCR); + urb = (r & SH4_MMUCR_URB_MASK) >> SH4_MMUCR_URB_SHIFT; printf("cpu0: %s virtual storage mode, SQ access: kernel%s, ", r & SH3_MMUCR_SV ? "single" : "multiple", r & SH4_MMUCR_SQMD ? "" : "/user"); printf("wired %d\n", - (r & SH4_MMUCR_URB_MASK) >> SH4_MMUCR_URB_SHIFT); + urb ? 64 - urb : 0); } #endif #endif /* DEBUG */ |