Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm add a KASSERT(pp) in the uvm_pagermapin() loop.



details:   https://anonhg.NetBSD.org/src/rev/58aaf7552f82
branches:  trunk
changeset: 503270:58aaf7552f82
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Feb 04 10:55:12 2001 +0000

description:
add a KASSERT(pp) in the uvm_pagermapin() loop.

diffstat:

 sys/uvm/uvm_pager.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r ebf4a5622049 -r 58aaf7552f82 sys/uvm/uvm_pager.c
--- a/sys/uvm/uvm_pager.c       Sun Feb 04 10:20:00 2001 +0000
+++ b/sys/uvm/uvm_pager.c       Sun Feb 04 10:55:12 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pager.c,v 1.39 2001/01/28 23:30:45 thorpej Exp $   */
+/*     $NetBSD: uvm_pager.c,v 1.40 2001/02/04 10:55:12 mrg Exp $       */
 
 /*
  *
@@ -180,6 +180,7 @@
        /* got it */
        for (cva = kva ; size != 0 ; size -= PAGE_SIZE, cva += PAGE_SIZE) {
                pp = *pps++;
+               KASSERT(pp);
                KASSERT(pp->flags & PG_BUSY);
                pmap_enter(vm_map_pmap(pager_map), cva, VM_PAGE_TO_PHYS(pp),
                    prot, PMAP_WIRED | ((pp->flags & PG_FAKE) ? prot :



Home | Main Index | Thread Index | Old Index