summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-03-17 20:05:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-03-17 20:05:23 +0000
commitb2cebd87c3c75836e2b58e054c75460a4fbce927 (patch)
treecfd257d0c5b1317f1e9beb394b8636f7095befa5 /sys/arch
parent49aaec30d2ca5d81565c97d162bb2235b49e8fc0 (diff)
Only invoke printstar() in get_pte() if option DEBUG.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mac68k/mac68k/locore.s88
-rw-r--r--sys/arch/mac68k/mac68k/machdep.c4
2 files changed, 27 insertions, 65 deletions
diff --git a/sys/arch/mac68k/mac68k/locore.s b/sys/arch/mac68k/mac68k/locore.s
index cef70be4f83..6f671cc59e2 100644
--- a/sys/arch/mac68k/mac68k/locore.s
+++ b/sys/arch/mac68k/mac68k/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.56 2006/07/06 17:49:45 miod Exp $ */
+/* $OpenBSD: locore.s,v 1.57 2007/03/17 20:05:22 miod Exp $ */
/* $NetBSD: locore.s,v 1.103 1998/07/09 06:02:50 scottr Exp $ */
/*
@@ -1708,6 +1708,18 @@ short_format:
movql #0,d0 | return short-format
jra get_pte_success
+#ifndef DEBUG
+get_pte_fail1:
+get_pte_fail2:
+get_pte_fail3:
+get_pte_fail4:
+get_pte_fail5:
+get_pte_fail6:
+get_pte_fail7:
+get_pte_fail8:
+get_pte_fail9:
+get_pte_fail10:
+#endif
get_pte_fail:
movql #-1,d0 | return failure
@@ -1719,81 +1731,29 @@ get_pte_success:
addql #4,sp | return temporary space
rts
-get_pte_fail1:
- jbsr _C_LABEL(printstar)
- jra get_pte_fail
-get_pte_fail2:
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jra get_pte_fail
-get_pte_fail3:
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jra get_pte_fail
-get_pte_fail4:
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jra get_pte_fail
-get_pte_fail5:
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jra get_pte_fail
-get_pte_fail6:
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jra get_pte_fail
-get_pte_fail7:
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jra get_pte_fail
-get_pte_fail8:
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jra get_pte_fail
-get_pte_fail9:
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jbsr _C_LABEL(printstar)
- jra get_pte_fail
+#ifdef DEBUG
get_pte_fail10:
jbsr _C_LABEL(printstar)
+get_pte_fail9:
jbsr _C_LABEL(printstar)
+get_pte_fail8:
jbsr _C_LABEL(printstar)
+get_pte_fail7:
jbsr _C_LABEL(printstar)
+get_pte_fail6:
jbsr _C_LABEL(printstar)
+get_pte_fail5:
jbsr _C_LABEL(printstar)
+get_pte_fail4:
jbsr _C_LABEL(printstar)
+get_pte_fail3:
jbsr _C_LABEL(printstar)
+get_pte_fail2:
jbsr _C_LABEL(printstar)
+get_pte_fail1:
jbsr _C_LABEL(printstar)
jra get_pte_fail
+#endif
/*
* Misc. global variables.
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c
index 4840db52f8b..d17be476954 100644
--- a/sys/arch/mac68k/mac68k/machdep.c
+++ b/sys/arch/mac68k/mac68k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.135 2007/03/03 21:21:25 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.136 2007/03/17 20:05:22 miod Exp $ */
/* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */
/*
@@ -2135,6 +2135,7 @@ get_mapping(void)
return load_addr; /* Return physical address of logical 0 */
}
+#ifdef DEBUG
/*
* Debugging code for locore page-traversal routine.
*/
@@ -2158,6 +2159,7 @@ printstar(void)
movl sp@+,a1;
movl sp@+,a0");
}
+#endif
/*
* Console bell callback; modularizes the console terminal emulator