summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_anon.c
diff options
context:
space:
mode:
authorsmart <smart@cvs.openbsd.org>2001-06-23 19:24:35 +0000
committersmart <smart@cvs.openbsd.org>2001-06-23 19:24:35 +0000
commitf7acaa693f8fb574786f3f8c349d9b533dc82de2 (patch)
tree5c2101e66c78c2c005721161b5c2af68636760f1 /sys/uvm/uvm_anon.c
parent14a5fffdc0e6ad0a7a6b111e6b0e4d190ed6c0d8 (diff)
Sync with NetBSD 19990911 (just before PMAP_NEW was required)
- thread_sleep_msg() -> uvm_sleep() - initialize reference count lock in uvm_anon_{init,add}() - add uao_flush() - replace boolean 'islocked' with 'lockflags' - in uvm_fault() change FALSE to TRUE to in 'wide' fault handling - get rid of uvm_km_get() - various bug fixes
Diffstat (limited to 'sys/uvm/uvm_anon.c')
-rw-r--r--sys/uvm/uvm_anon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/uvm/uvm_anon.c b/sys/uvm/uvm_anon.c
index da7733d32d1..b393d701ddb 100644
--- a/sys/uvm/uvm_anon.c
+++ b/sys/uvm/uvm_anon.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: uvm_anon.c,v 1.6 2001/01/29 02:07:42 niklas Exp $ */
-/* $NetBSD: uvm_anon.c,v 1.2 1999/03/26 17:34:15 chs Exp $ */
+/* $OpenBSD: uvm_anon.c,v 1.7 2001/06/23 19:24:33 smart Exp $ */
+/* $NetBSD: uvm_anon.c,v 1.3 1999/08/14 06:25:48 ross Exp $ */
/*
*
@@ -76,6 +76,7 @@ uvm_anon_init()
for (lcv = 0 ; lcv < nanon ; lcv++) {
anon[lcv].u.an_nxt = uvm.afree;
uvm.afree = &anon[lcv];
+ simple_lock_init(&uvm.afree->an_lock);
}
simple_lock_init(&uvm.afreelock);
}
@@ -108,6 +109,7 @@ uvm_anon_add(pages)
simple_lock_init(&anon->an_lock);
anon[lcv].u.an_nxt = uvm.afree;
uvm.afree = &anon[lcv];
+ simple_lock_init(&uvm.afree->an_lock);
}
simple_unlock(&uvm.afreelock);
}