Define one page free list, and put all pages on it.

This commit is contained in:
thorpej 1998-07-08 04:35:23 +00:00
parent 7fd701e0fa
commit 1ea93eea1c
6 changed files with 23 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.134 1998/07/08 00:41:32 mjacob Exp $ */
/* $NetBSD: machdep.c,v 1.135 1998/07/08 04:35:23 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -79,7 +79,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.134 1998/07/08 00:41:32 mjacob Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.135 1998/07/08 04:35:23 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -596,7 +596,7 @@ nobootinfo:
#endif
#if defined(UVM)
uvm_page_physload(pfn0, kernstartpfn,
pfn0, kernstartpfn);
pfn0, kernstartpfn, VM_FREELIST_DEFAULT);
#else
vm_page_physload(pfn0, kernstartpfn,
pfn0, kernstartpfn);
@ -615,7 +615,7 @@ nobootinfo:
#endif
#if defined(UVM)
uvm_page_physload(kernendpfn, pfn1,
kernendpfn, pfn1);
kernendpfn, pfn1, VM_FREELIST_DEFAULT);
#else
vm_page_physload(kernendpfn, pfn1,
kernendpfn, pfn1);
@ -630,7 +630,8 @@ nobootinfo:
pfn0, pfn1);
#endif
#if defined(UVM)
uvm_page_physload(pfn0, pfn1, pfn0, pfn1);
uvm_page_physload(pfn0, pfn1, pfn0, pfn1,
VM_FREELIST_DEFAULT);
#else
vm_page_physload(pfn0, pfn1, pfn0, pfn1);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.10 1998/03/12 01:25:52 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.11 1998/07/08 04:35:24 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -169,6 +169,9 @@ extern u_int32_t vm_mbuf_size, vm_kmem_size, vm_phys_size;
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* no more after vm_mem_init */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0
/*
* pmap-specific data stored in the vm_physmem[] array.
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.32 1998/06/12 09:27:37 leo Exp $ */
/* $NetBSD: pmap.c,v 1.33 1998/07/08 04:35:24 thorpej Exp $ */
/*
* Copyright (c) 1991 Regents of the University of California.
@ -359,7 +359,8 @@ u_int hw_addr, hw_pages;
uvm_page_physload(atop(usable_segs[i].start),
atop(usable_segs[i].end),
atop(usable_segs[i].start),
atop(usable_segs[i].end));
atop(usable_segs[i].end),
VM_FREELIST_DEFAULT);
#else
vm_page_physload(atop(usable_segs[i].start),
atop(usable_segs[i].end),

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.5 1998/05/07 07:26:05 leo Exp $ */
/* $NetBSD: vmparam.h,v 1.6 1998/07/08 04:35:24 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -162,6 +162,9 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0
/*
* pmap-specific data stored in the vm_physmem[] array.
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.112 1998/07/05 18:27:18 jonathan Exp $ */
/* $NetBSD: machdep.c,v 1.113 1998/07/08 04:35:25 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -217,7 +217,7 @@ hp300_init()
*/
#if defined(UVM)
uvm_page_physload(atop(avail_start), atop(avail_end),
atop(avail_start), atop(avail_end));
atop(avail_start), atop(avail_end), VM_FREELIST_DEFAULT);
#else
vm_page_physload(atop(avail_start), atop(avail_end),
atop(avail_start), atop(avail_end));

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.14 1998/04/26 21:24:27 scottr Exp $ */
/* $NetBSD: vmparam.h,v 1.15 1998/07/08 04:35:25 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -257,6 +257,9 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0
/*
* pmap-specific data stored in the vm_physmem[] array.
*/