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.22 -> 1.23:



details:   https://anonhg.NetBSD.org/src/rev/4236e999c355
branches:  netbsd-1-4
changeset: 468288:4236e999c355
user:      chs <chs%NetBSD.org@localhost>
date:      Fri Apr 16 16:28:45 1999 +0000

description:
pull up 1.22 -> 1.23:
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_km.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r e17aab2c0314 -r 4236e999c355 sys/uvm/uvm_km.c
--- a/sys/uvm/uvm_km.c  Fri Apr 16 16:28:06 1999 +0000
+++ b/sys/uvm/uvm_km.c  Fri Apr 16 16:28:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_km.c,v 1.22 1999/03/26 21:58:39 mycroft Exp $      */
+/*     $NetBSD: uvm_km.c,v 1.22.2.1 1999/04/16 16:28:45 chs Exp $      */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -244,7 +244,7 @@
                        /* null?  attempt to allocate the page */
                        if (ptmp == NULL) {
                                ptmp = uvm_pagealloc(uobj, current_offset,
-                                   NULL);
+                                   NULL, 0);
                                if (ptmp) {
                                        /* new page */
                                        ptmp->flags &= ~(PG_BUSY|PG_FAKE);
@@ -334,7 +334,7 @@
                        if (ptmp == NULL) {
 
                                ptmp = uvm_pagealloc(uobj, current_offset,
-                                   NULL);      /* alloc */
+                                   NULL, 0);
 
                                /* out of RAM? */
                                if (ptmp == NULL) {
@@ -700,7 +700,7 @@
        loopva = kva;
        while (size) {
                simple_lock(&obj->vmobjlock);
-               pg = uvm_pagealloc(obj, offset, NULL);
+               pg = uvm_pagealloc(obj, offset, NULL, 0);
                if (pg) {
                        pg->flags &= ~PG_BUSY;  /* new page */
                        UVM_PAGE_OWN(pg, NULL);
@@ -849,7 +849,7 @@
                }
                
                /* allocate ram */
-               pg = uvm_pagealloc(uvm.kernel_object, offset, NULL);
+               pg = uvm_pagealloc(uvm.kernel_object, offset, NULL, 0);
                if (pg) {
                        pg->flags &= ~PG_BUSY;  /* new page */
                        UVM_PAGE_OWN(pg, NULL);
@@ -1000,7 +1000,7 @@
        vaddr_t va;
 
  again:
-       pg = uvm_pagealloc(NULL, 0, NULL);
+       pg = uvm_pagealloc(NULL, 0, NULL, 0);
        if (pg == NULL) {
                if (waitok) {
                        uvm_wait("plpg");



Home | Main Index | Thread Index | Old Index