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.27 -> 1.28:



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

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

diffs (54 lines):

diff -r 41b68b5de8a0 -r e17aab2c0314 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c       Fri Apr 16 16:27:36 1999 +0000
+++ b/sys/uvm/uvm_fault.c       Fri Apr 16 16:28:06 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_fault.c,v 1.27 1999/03/29 05:43:31 mycroft Exp $   */
+/*     $NetBSD: uvm_fault.c,v 1.27.2.1 1999/04/16 16:28:06 chs Exp $   */
 
 /*
  *
@@ -375,7 +375,7 @@
                        /*
                         * no page, we must try and bring it in.
                         */
-                       pg = uvm_pagealloc(NULL, 0, anon);
+                       pg = uvm_pagealloc(NULL, 0, anon, 0);
 
                        if (pg == NULL) {               /* out of RAM.  */
 
@@ -1074,7 +1074,7 @@
                        if (anon->an_ref == 1) {
 
                                /* get new un-owned replacement page */
-                               pg = uvm_pagealloc(NULL, 0, NULL);
+                               pg = uvm_pagealloc(NULL, 0, NULL, 0);
                                if (pg == NULL) {
                                        uvmfault_unlockall(&ufi, amap, uobj,
                                            anon);
@@ -1137,7 +1137,7 @@
                oanon = anon;           /* oanon = old, locked anon */
                anon = uvm_analloc();
                if (anon)
-                       pg = uvm_pagealloc(NULL, 0, anon);
+                       pg = uvm_pagealloc(NULL, 0, anon, 0);
 #ifdef __GNUC__
                else
                        pg = NULL; /* XXX: gcc */
@@ -1434,7 +1434,7 @@
                                /* write fault: must break the loan here */
 
                                /* alloc new un-owned page */
-                               pg = uvm_pagealloc(NULL, 0, NULL);
+                               pg = uvm_pagealloc(NULL, 0, NULL, 0);
 
                                if (pg == NULL) {
                                        /*
@@ -1515,7 +1515,7 @@
 
                anon = uvm_analloc();
                if (anon)
-                       pg = uvm_pagealloc(NULL, 0, anon); /* BUSY+CLEAN+FAKE */
+                       pg = uvm_pagealloc(NULL, 0, anon, 0);
 #ifdef __GNUC__
                else
                        pg = NULL; /* XXX: gcc */



Home | Main Index | Thread Index | Old Index