summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-05-01 13:13:11 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-05-01 13:13:11 +0000
commit33561422fb73d3271a4a72295623b2689cd818f2 (patch)
treea4d2fecebf206991361e740aa4c21a386e1a2e1f /sys/uvm
parent010ca6958be666dd12b9b1d63ea129087bf1f892 (diff)
Unbreak ramdisks.
I forgot that uvm_object.c wasn't build if SMALL_KERNEL. Fix this by building the file unconditionally and only building the less used functions when SMALL_KERNEL is not defined. unbreaks ramdisk build. ok jsg@
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_object.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/uvm/uvm_object.c b/sys/uvm/uvm_object.c
index cc7871b8a5f..ffd76a259e5 100644
--- a/sys/uvm/uvm_object.c
+++ b/sys/uvm/uvm_object.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_object.c,v 1.5 2010/04/30 21:56:39 oga Exp $ */
+/* $OpenBSD: uvm_object.c,v 1.6 2010/05/01 13:13:10 oga Exp $ */
/*
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -54,6 +54,7 @@ uvm_objinit(struct uvm_object *uobj, struct uvm_pagerops *pgops, int refs)
uobj->uo_refs = refs;
}
+#ifndef SMALL_KERNEL
/*
* uvm_objwire: wire the pages of entire uobj
*
@@ -168,3 +169,4 @@ uvm_objunwire(struct uvm_object *uobj, off_t start, off_t end)
uvm_unlock_pageq();
simple_unlock(&uobj->vmobjlock);
}
+#endif /* !SMALL_KERNEL */