summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-04-10 16:54:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-04-10 16:54:47 +0000
commit9530d4c64bb3c07607f5b916eb200f51c2088835 (patch)
treed49647fa0da8705e9a41e0c7d7facc24424092f7 /sys
parentf8c188d41c441b015de7158ace16a021ded06af8 (diff)
Do not compile unused dump_tlb() unless option DEBUG.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sgi/sgi/machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c
index 5497eb696f0..8a1ec37b5ec 100644
--- a/sys/arch/sgi/sgi/machdep.c
+++ b/sys/arch/sgi/sgi/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.34 2007/02/26 21:30:18 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.35 2007/04/10 16:54:46 miod Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -91,7 +91,9 @@ extern char kernel_text[];
extern int makebootdev(const char *, int);
extern void stacktrace(void);
+#ifdef DEBUG
void dump_tlb(void);
+#endif
/* the following is used externally (sysctl_hw) */
char machine[] = MACHINE; /* machine "architecture" */
@@ -1119,6 +1121,7 @@ rm7k_watchintr(trapframe)
return(0);
}
+#ifdef DEBUG
/*
* Dump TLB contents.
*/
@@ -1166,3 +1169,4 @@ char *attr[] = {
bios_printf("\n");
}
}
+#endif