diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-06-28 04:20:30 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-06-28 04:20:30 +0000 |
commit | b27faa82e26347c17aff72975081e2d9d2b40f46 (patch) | |
tree | 66bf34fae1f03dee09b788d8e2e6fa0080c1e299 /sys/uvm/uvm_km.c | |
parent | 7a51be8ddeb0f2738636ebd46232ebf65355d8b6 (diff) |
Move uvm_km_pages struct declaration and watermark bounds to uvm_km.h, so
that md code can peek at it, and update m68k !__HAVE_PMAP_DIRECT setup code
to the recent uvm_km changes.
ok thib@
Diffstat (limited to 'sys/uvm/uvm_km.c')
-rw-r--r-- | sys/uvm/uvm_km.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c index c488c7f55ee..dfb8e1f2e32 100644 --- a/sys/uvm/uvm_km.c +++ b/sys/uvm/uvm_km.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_km.c,v 1.78 2010/06/27 17:45:20 thib Exp $ */ +/* $OpenBSD: uvm_km.c,v 1.79 2010/06/28 04:20:29 miod Exp $ */ /* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */ /* @@ -700,23 +700,6 @@ uvm_km_page_init(void) * not zero filled. */ -#define UVM_KM_PAGES_LOWAT_MAX (2048) -#define UVM_KM_PAGES_HIWAT_MAX (4 * UVM_KM_PAGES_LOWAT_MAX) - -struct uvm_km_pages { - struct mutex mtx; - - /* Low and high water mark for addresses. */ - int lowat; - int hiwat; - - /* Kernel address pool. */ - int free; - vaddr_t page[UVM_KM_PAGES_HIWAT_MAX]; - - struct proc *km_proc; -}; - struct uvm_km_pages uvm_km_pages; void uvm_km_createthread(void *); |