summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-06-17 22:19:13 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-06-17 22:19:13 +0000
commit958b00559d262343bd9376f34ccf52f5739345bd (patch)
tree19108dd27a3b4d395b2e9de19db10a29c6cc7462 /sys/uvm
parent797a696817dbc9fc4db366b44674fef4ca5ec2ca (diff)
Recommit part of miod's no-coredumps-on-ramdisks diff that got lost in the
big uvm backout mess. ok miod@
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_unix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/uvm/uvm_unix.c b/sys/uvm/uvm_unix.c
index 271f0ec2edc..45c9f192558 100644
--- a/sys/uvm/uvm_unix.c
+++ b/sys/uvm/uvm_unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_unix.c,v 1.38 2009/06/17 00:13:59 oga Exp $ */
+/* $OpenBSD: uvm_unix.c,v 1.39 2009/06/17 22:19:12 kettenis Exp $ */
/* $NetBSD: uvm_unix.c,v 1.18 2000/09/13 15:00:25 thorpej Exp $ */
/*
@@ -147,6 +147,8 @@ uvm_grow(struct proc *p, vaddr_t sp)
vm->vm_ssize += si;
}
+#ifndef SMALL_KERNEL
+
/*
* uvm_coredump: dump core!
*/
@@ -320,3 +322,5 @@ uvm_coredump_walkmap(struct proc *p, void *iocookie,
return (0);
}
+
+#endif /* !SMALL_KERNEL */