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.14 -> 1.15:



details:   https://anonhg.NetBSD.org/src/rev/86ed80ed0810
branches:  netbsd-1-4
changeset: 468289:86ed80ed0810
user:      chs <chs%NetBSD.org@localhost>
date:      Fri Apr 16 16:29:09 1999 +0000

description:
pull up 1.14 -> 1.15:
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_loan.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4236e999c355 -r 86ed80ed0810 sys/uvm/uvm_loan.c
--- a/sys/uvm/uvm_loan.c        Fri Apr 16 16:28:45 1999 +0000
+++ b/sys/uvm/uvm_loan.c        Fri Apr 16 16:29:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_loan.c,v 1.14 1999/03/25 18:48:52 mrg Exp $        */
+/*     $NetBSD: uvm_loan.c,v 1.14.2.1 1999/04/16 16:29:09 chs Exp $    */
 
 /*
  *
@@ -610,7 +610,7 @@
 
        if ((flags & UVM_LOAN_TOANON) == 0) {   /* loaning to kernel-page */
 
-               while ((pg = uvm_pagealloc(NULL, 0, NULL)) == NULL) {
+               while ((pg = uvm_pagealloc(NULL, 0, NULL, 0)) == NULL) {
                        uvmfault_unlockall(ufi, ufi->entry->aref.ar_amap, 
                            ufi->entry->object.uvm_obj, NULL);
                        uvm_wait("loanzero1");
@@ -640,7 +640,7 @@
 
        /* loaning to an anon */
        while ((anon = uvm_analloc()) == NULL || 
-           (pg = uvm_pagealloc(NULL, 0, anon)) == NULL) {
+           (pg = uvm_pagealloc(NULL, 0, anon, 0)) == NULL) {
                
                /* unlock everything */
                uvmfault_unlockall(ufi, ufi->entry->aref.ar_amap,



Home | Main Index | Thread Index | Old Index