Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/uvm pull up 1.23 -> 1.24:
details: https://anonhg.NetBSD.org/src/rev/41b68b5de8a0
branches: netbsd-1-4
changeset: 468286:41b68b5de8a0
user: chs <chs%NetBSD.org@localhost>
date: Fri Apr 16 16:27:36 1999 +0000
description:
pull up 1.23 -> 1.24:
add a `flags' argument to uvm_pagealloc_strat().
define a flag UVM_PGA_USERESERVE to allow non-kernel object
allocations to use pages from the reserve.
use the new flag for allocations in pmap modules.
diffstat:
sys/uvm/uvm_extern.h | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 6946639cd234 -r 41b68b5de8a0 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h Fri Apr 16 16:27:13 1999 +0000
+++ b/sys/uvm/uvm_extern.h Fri Apr 16 16:27:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_extern.h,v 1.23 1999/03/26 17:34:15 chs Exp $ */
+/* $NetBSD: uvm_extern.h,v 1.23.2.1 1999/04/16 16:27:36 chs Exp $ */
/*
*
@@ -118,7 +118,6 @@
/*
* the following defines are for uvm_km_kmemalloc's flags
*/
-
#define UVM_KMF_NOWAIT 0x1 /* matches M_NOWAIT */
#define UVM_KMF_VALLOC 0x2 /* allocate VA only */
#define UVM_KMF_TRYLOCK UVM_FLAG_TRYLOCK /* try locking only */
@@ -131,6 +130,11 @@
#define UVM_PGA_STRAT_FALLBACK 2 /* ONLY falls back on NORMAL */
/*
+ * flags for uvm_pagealloc_strat()
+ */
+#define UVM_PGA_USERESERVE 0x0001
+
+/*
* structures
*/
@@ -340,9 +344,10 @@
/* uvm_page.c */
struct vm_page *uvm_pagealloc_strat __P((struct uvm_object *,
- vaddr_t, struct vm_anon *, int, int));
-#define uvm_pagealloc(obj, off, anon) \
- uvm_pagealloc_strat((obj), (off), (anon), UVM_PGA_STRAT_NORMAL, 0)
+ vaddr_t, struct vm_anon *, int, int, int));
+#define uvm_pagealloc(obj, off, anon, flags) \
+ uvm_pagealloc_strat((obj), (off), (anon), (flags), \
+ UVM_PGA_STRAT_NORMAL, 0)
void uvm_pagerealloc __P((struct vm_page *,
struct uvm_object *, vaddr_t));
/* Actually, uvm_page_physload takes PF#s which need their own type */
Home |
Main Index |
Thread Index |
Old Index