summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-08-08 21:46:06 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-08-08 21:46:06 +0000
commit645138c35c7d47b2fc0fa95d05fca6139a75a6bc (patch)
tree7f5f39b665162ad840ca77d2e42f3ceec3b8b53d /sys
parentacac3033d44e8b61eee8729148904b79d91ae958 (diff)
print btlb params w/ BTLBDEBUG; from Havard.Eidnes@runit.sintef.no
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/hppa/machdep.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index d51dc1c93f9..15ce0e622f3 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.26 2000/07/02 03:59:51 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.27 2000/08/08 21:46:05 mickey Exp $ */
/*
* Copyright (c) 1999-2000 Michael Shalayeff
@@ -31,8 +31,6 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#undef BTLBDEBUG
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signalvar.h>
@@ -278,6 +276,18 @@ hppa_init(start)
printf("WARNING: PDC_BTLB error %d", error);
#endif
} else {
+#ifdef BTLBDEBUG
+ printf("btlb info: minsz=%d, maxsz=%d\n",
+ pdc_btlb.min_size, pdc_btlb.max_size);
+ printf("btlb fixed: i=%d, d=%d, c=%d\n",
+ pdc_btlb.finfo.num_i,
+ pdc_btlb.finfo.num_d,
+ pdc_btlb.finfo.num_c);
+ printf("btlb varbl: i=%d, d=%d, c=%d\n",
+ pdc_btlb.vinfo.num_i,
+ pdc_btlb.vinfo.num_d,
+ pdc_btlb.vinfo.num_c);
+#endif /* BTLBDEBUG */
/* purge TLBs and caches */
if (pdc_call((iodcio_t)pdc, 0, PDC_BLOCK_TLB,
PDC_BTLB_PURGE_ALL) < 0)