summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm.h3
-rw-r--r--sys/uvm/uvm_page.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/uvm/uvm.h b/sys/uvm/uvm.h
index 9668bf485dd..40b9f292229 100644
--- a/sys/uvm/uvm.h
+++ b/sys/uvm/uvm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm.h,v 1.8 2001/03/22 03:05:54 smart Exp $ */
+/* $OpenBSD: uvm.h,v 1.9 2001/04/10 06:59:12 niklas Exp $ */
/* $NetBSD: uvm.h,v 1.16 1999/06/21 17:25:11 thorpej Exp $ */
/*
@@ -81,6 +81,7 @@ struct uvm {
struct pglist page_inactive_obj;/* pages inactive (reclaim or free) */
simple_lock_data_t pageqlock; /* lock for active/inactive page q */
simple_lock_data_t fpageqlock; /* lock for free page q */
+ boolean_t page_init_done; /* TRUE if uvm_page_init() finished */
/* page daemon trigger */
int pagedaemon; /* daemon sleeps on this */
struct proc *pagedaemon_proc; /* daemon's pid */
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c
index 30f09d49071..14fadaac3b9 100644
--- a/sys/uvm/uvm_page.c
+++ b/sys/uvm/uvm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.c,v 1.15 2001/03/22 18:05:33 niklas Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.16 2001/04/10 06:59:12 niklas Exp $ */
/* $NetBSD: uvm_page.c,v 1.24 1999/07/22 22:58:38 thorpej Exp $ */
/*
@@ -338,6 +338,7 @@ uvm_page_init(kvm_startp, kvm_endp)
* done!
*/
+ uvm.page_init_done = TRUE;
}
/*
@@ -481,7 +482,7 @@ uvm_page_physget(paddrp)
#endif
{
- if (vm_physmem[lcv].pgs)
+ if (uvm.page_init_done == TRUE)
panic("vm_page_physget: called _after_ bootstrap");
/* try from front */