summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_extern.h
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2005-09-28 00:24:05 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2005-09-28 00:24:05 +0000
commit9f368ce71c70a77488981071f2622c3cdbd650a5 (patch)
tree5e496fcd52f3f9e43e24550d9bf04d11a0489468 /sys/uvm/uvm_extern.h
parentbd960b2b5472bc650b8b4b0db04b5c76af1b7452 (diff)
- when we run out of static kernel map entries, grab a fresh page using
the uvm_km_page allocator and use it instead of calling panic() - add a counter to uvmexp so we can keep track of how many map entries we have in use idea from tedu@, long ago, okay deraadt@
Diffstat (limited to 'sys/uvm/uvm_extern.h')
-rw-r--r--sys/uvm/uvm_extern.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h
index a65dff88d1f..f9f52056fee 100644
--- a/sys/uvm/uvm_extern.h
+++ b/sys/uvm/uvm_extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_extern.h,v 1.57 2005/09/12 23:05:06 miod Exp $ */
+/* $OpenBSD: uvm_extern.h,v 1.58 2005/09/28 00:24:03 pedro Exp $ */
/* $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $ */
/*
@@ -360,6 +360,7 @@ struct uvmexp {
struct uvm_object *kmem_object;
int fpswtch; /* FPU context switches */
+ int kmapent; /* number of kernel map entries */
};
#ifdef _KERNEL