diff options
author | 2007-04-10 16:54:46 +0000 | |
---|---|---|
committer | 2007-04-10 16:54:46 +0000 | |
commit | fbe01b297db0f07a950f48c6152fe5cdcb81f583 (patch) | |
tree | 2b78b678d0a8c9e1943847eee7d29b397ec25dae /sys | |
parent | slighly -> slightly (diff) | |
download | wireguard-openbsd-fbe01b297db0f07a950f48c6152fe5cdcb81f583.tar.xz wireguard-openbsd-fbe01b297db0f07a950f48c6152fe5cdcb81f583.zip |
Do not compile unused dump_tlb() unless option DEBUG.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sgi/sgi/machdep.c | 6 |
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 |