summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-28 21:02:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-28 21:02:13 +0000
commit81fb44468ff2309e6099251d8d26d030a859340a (patch)
tree74ad12f36305e297da7f574d860da0d7f2ca233d /sys/kern
parent6028012d34b115d156a223730b827ac011431ef9 (diff)
satisfy RAMDISK by placing cold == 2 case inside #ifdef DDB
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_synch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index b81d8b9dc99..35fa6b460b2 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_synch.c,v 1.124 2015/09/28 18:36:36 deraadt Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.125 2015/09/28 21:02:12 deraadt Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*
@@ -116,8 +116,10 @@ tsleep(const volatile void *ident, int priority, const char *wmesg, int timo)
KASSERT(timo || __mp_lock_held(&kernel_lock));
#endif
+#ifdef DDB
if (cold == 2)
db_stack_dump();
+#endif
if (cold || panicstr) {
int s;
/*