free correct page in incomplete section of MNN, as pointed

out by Soren S. Jorvang.
This commit is contained in:
chuck 1998-03-31 03:04:59 +00:00
parent a2f0e60db6
commit 9eb2927bec
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_page.c,v 1.7 1998/03/09 00:58:58 mrg Exp $ */ /* $NetBSD: uvm_page.c,v 1.8 1998/03/31 03:04:59 chuck Exp $ */
/* /*
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE! * XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
@ -610,7 +610,7 @@ uvm_page_physload(start, end, avail_start, avail_end)
pgs[lcv].phys_addr = paddr; pgs[lcv].phys_addr = paddr;
if (atop(paddr) >= avail_start && if (atop(paddr) >= avail_start &&
atop(paddr) <= avail_end) atop(paddr) <= avail_end)
vm_page_free(&pgs[i]); uvm_pagefree(&pgs[lcv]);
} }
/* XXXCDC: incomplete: need to update uvmexp.free, what else? */ /* XXXCDC: incomplete: need to update uvmexp.free, what else? */
/* XXXCDC: need hook to tell pmap to rebuild pv_list, etc... */ /* XXXCDC: need hook to tell pmap to rebuild pv_list, etc... */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_page.c,v 1.44 1998/03/20 17:40:20 phil Exp $ */ /* $NetBSD: vm_page.c,v 1.45 1998/03/31 03:04:59 chuck Exp $ */
#define VM_PAGE_ALLOC_MEMORY_STATS #define VM_PAGE_ALLOC_MEMORY_STATS
@ -582,7 +582,7 @@ vm_page_physload(start, end, avail_start, avail_end)
pgs[lcv].phys_addr = paddr; pgs[lcv].phys_addr = paddr;
if (atop(paddr) >= avail_start && if (atop(paddr) >= avail_start &&
atop(paddr) <= avail_end) atop(paddr) <= avail_end)
vm_page_free(&pgs[i]); vm_page_free(&pgs[lcv]);
} }
/* XXXCDC: incomplete: need to update v_free_count, what else? */ /* XXXCDC: incomplete: need to update v_free_count, what else? */
/* XXXCDC: need hook to tell pmap to rebuild pv_list, etc... */ /* XXXCDC: need hook to tell pmap to rebuild pv_list, etc... */