diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index 601a4eb71f65..404e315625d4 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -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! @@ -610,7 +610,7 @@ uvm_page_physload(start, end, avail_start, avail_end) pgs[lcv].phys_addr = paddr; if (atop(paddr) >= avail_start && atop(paddr) <= avail_end) - vm_page_free(&pgs[i]); + uvm_pagefree(&pgs[lcv]); } /* XXXCDC: incomplete: need to update uvmexp.free, what else? */ /* XXXCDC: need hook to tell pmap to rebuild pv_list, etc... */ diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 02249a97ed8c..e139c85f024a 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -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 @@ -582,7 +582,7 @@ vm_page_physload(start, end, avail_start, avail_end) pgs[lcv].phys_addr = paddr; if (atop(paddr) >= avail_start && 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: need hook to tell pmap to rebuild pv_list, etc... */