summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_km.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-07-26 19:37:14 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-07-26 19:37:14 +0000
commit34736e0579123f60efbe00cf506fd4b82e5b769a (patch)
tree1e8806da205009ef73327c70f28319fe7e5df798 /sys/uvm/uvm_km.c
parent78e879ae8deee32b2668976fbffb5a125629ba39 (diff)
Add support for disabling swap devices (swapctl -d).
Improve error handling on I/O errors to swap. From NetBSD
Diffstat (limited to 'sys/uvm/uvm_km.c')
-rw-r--r--sys/uvm/uvm_km.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c
index 90b1cc3662d..2acbc0507f3 100644
--- a/sys/uvm/uvm_km.c
+++ b/sys/uvm/uvm_km.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: uvm_km.c,v 1.12 2001/07/25 13:25:33 art Exp $ */
-/* $NetBSD: uvm_km.c,v 1.33 1999/11/13 00:24:38 thorpej Exp $ */
+/* $OpenBSD: uvm_km.c,v 1.13 2001/07/26 19:37:13 art Exp $ */
+/* $NetBSD: uvm_km.c,v 1.34 2000/01/11 06:57:50 chs Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -201,6 +201,7 @@ uvm_km_init(start, end)
*/
/* kernel_object: for pageable anonymous kernel memory */
+ uao_init();
uvm.kernel_object = uao_create(VM_MAX_KERNEL_ADDRESS -
VM_MIN_KERNEL_ADDRESS, UAO_FLAG_KERNOBJ);