Remove incomplete, never worked dynamic run-time memory registration

(uvm_page_physload(9)).  This functionality will be re-added later.
This commit is contained in:
uebayasi 2010-11-06 15:42:43 +00:00
parent 333f27a387
commit 41e5df6d3e
35 changed files with 34 additions and 144 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.9 2009/03/06 20:31:46 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.10 2010/11/06 15:42:43 uebayasi Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -100,8 +100,6 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#define VM_PHYSSEG_NOADD /* We won't turn up extra memory during autoconfig */
#define VM_NFREELIST 2
#define VM_FREELIST_LOW 1 /* DMA-able memory (bottom 512k phys) */
#define VM_FREELIST_DEFAULT 0 /* The rest */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.21 2007/10/25 13:03:03 yamt Exp $ */
/* $NetBSD: vmparam.h,v 1.22 2010/11/06 15:42:43 uebayasi Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -75,13 +75,6 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
/*
* this indicates that we can't add RAM to the VM system after the
* vm system is init'd.
*/
#define VM_PHYSSEG_NOADD
/*
* we support 2 free lists:
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.33 2009/03/06 20:31:46 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.34 2010/11/06 15:42:43 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@ -147,7 +147,6 @@
#define VM_PHYSSEG_MAX 16 /* XXX */
#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

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.22 2009/11/22 21:41:03 bouyer Exp $ */
/* $NetBSD: vmparam.h,v 1.23 2010/11/06 15:42:44 uebayasi Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -150,7 +150,6 @@
#define VM_PHYSSEG_MAX 10 /* 1 "hole" + 9 free lists */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#define VM_NFREELIST 3
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.39 2009/12/08 13:47:26 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.40 2010/11/06 15:42:44 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@ -159,7 +159,6 @@
*/
#define VM_PHYSSEG_MAX (16)
#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
#define VM_PHYSSEG_NOADD /* XXX this should be done right later */
/*
* Allow supporting Zorro-II memory as lower priority:

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.26 2009/12/08 13:47:26 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.27 2010/11/06 15:42:44 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@ -156,7 +156,6 @@
*/
#define VM_PHYSSEG_MAX (2)
#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 2
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.26 2007/10/25 13:03:03 yamt Exp $ */
/* $NetBSD: vmparam.h,v 1.27 2010/11/06 15:42:44 uebayasi Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -75,13 +75,6 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
/*
* this indicates that we can't add RAM to the VM system after the
* vm system is init'd.
*/
#define VM_PHYSSEG_NOADD
/*
* we support 2 free lists:
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.12 2009/12/08 13:47:26 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.13 2010/11/06 15:42:44 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -177,7 +177,6 @@
*/
#define VM_PHYSSEG_MAX 1
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.25 2008/04/27 18:58:46 matt Exp $ */
/* $NetBSD: vmparam.h,v 1.26 2010/11/06 15:42:45 uebayasi Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -79,13 +79,6 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
/*
* this indicates that we can't add RAM to the VM system after the
* vm system is init'd.
*/
#define VM_PHYSSEG_NOADD
/*
* we support 2 free lists:
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.35 2009/12/08 13:47:26 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.36 2010/11/06 15:42:45 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -171,7 +171,6 @@
*/
#define VM_PHYSSEG_MAX 1
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.28 2007/10/25 13:03:04 yamt Exp $ */
/* $NetBSD: vmparam.h,v 1.29 2010/11/06 15:42:45 uebayasi Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -75,13 +75,6 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
/*
* this indicates that we can't add RAM to the VM system after the
* vm system is init'd.
*/
#define VM_PHYSSEG_NOADD
/*
* we support 2 free lists:
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.15 2010/02/16 16:56:30 skrll Exp $ */
/* $NetBSD: vmparam.h,v 1.16 2010/11/06 15:42:45 uebayasi Exp $ */
/* $OpenBSD: vmparam.h,v 1.33 2006/06/04 17:21:24 miod Exp $ */
@ -95,8 +95,6 @@
#define VM_PHYSSEG_MAX 8 /* this many physmem segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#define VM_PHYSSEG_NOADD /* XXX until uvm code is fixed */
#define VM_NFREELIST 2
#define VM_FREELIST_DEFAULT 0
#define VM_FREELIST_ISADMA 1

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.70 2009/03/06 20:31:49 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.71 2010/11/06 15:42:45 uebayasi Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -122,7 +122,6 @@
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#ifdef XEN
#define VM_PHYSSEG_MAX 1

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.5 2009/07/20 04:41:37 kiyohara Exp $ */
/* $NetBSD: vmparam.h,v 1.6 2010/11/06 15:42:46 uebayasi Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -102,7 +102,6 @@
#define VM_PHYSSEG_MAX 16 /* XXX: */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* no more after vm_mem_init */
#define VM_NFREELIST 1 /* XXX: */
#define VM_FREELIST_DEFAULT 0 /* XXX: */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.3 2007/10/25 13:03:04 yamt Exp $ */
/* $NetBSD: vmparam.h,v 1.4 2010/11/06 15:42:46 uebayasi Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -75,13 +75,6 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
/*
* this indicates that we can't add RAM to the VM system after the
* vm system is init'd.
*/
#define VM_PHYSSEG_NOADD
/*
* we support 2 free lists:
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.16 2010/02/08 19:02:29 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.17 2010/11/06 15:42:46 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -149,7 +149,6 @@
*/
#define VM_PHYSSEG_MAX 1
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.40 2009/12/08 13:47:27 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.41 2010/11/06 15:42:46 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1990 The Regents of the University of California.
@ -197,7 +197,6 @@
*/
#define VM_PHYSSEG_MAX 2
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.44 2009/12/14 00:46:05 matt Exp $ */
/* $NetBSD: vmparam.h,v 1.45 2010/11/06 15:42:47 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@ -200,7 +200,6 @@
/* VM_PHYSSEG_MAX defined by platform-dependent code. */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* can add RAM after vm_mem_init */
#define __HAVE_VM_PAGE_MD

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.31 2009/12/08 13:47:27 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.32 2010/11/06 15:42:47 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -162,7 +162,6 @@
*/
#define VM_PHYSSEG_MAX 2
#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 2
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.24 2007/10/25 13:03:05 yamt Exp $ */
/* $NetBSD: vmparam.h,v 1.25 2010/11/06 15:42:47 uebayasi Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -75,13 +75,6 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
/*
* this indicates that we can't add RAM to the VM system after the
* vm system is init'd.
*/
#define VM_PHYSSEG_NOADD
/*
* we support 2 free lists:
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.16 2009/12/08 13:47:27 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.17 2010/11/06 15:42:47 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -161,7 +161,6 @@
*/
#define VM_PHYSSEG_MAX 1
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.21 2009/12/08 13:47:27 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.22 2010/11/06 15:42:47 uebayasi Exp $ */
/*
* This file was taken from from mvme68k/include/vmparam.h and
@ -167,7 +167,6 @@
*/
#define VM_PHYSSEG_MAX 5 /* @@@ should really come from N_SIMM */
#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
#define VM_PHYSSEG_NOADD /* @@@ does the NeXT really need this? */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -109,7 +109,6 @@
#define VM_PHYSSEG_MAX 16
#endif
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#define VM_PHYSSEG_NOADD
#ifndef VM_PHYS_SIZE
#define VM_PHYS_SIZE (USRIOSIZE * PAGE_SIZE)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.6 2009/03/06 20:31:51 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.7 2010/11/06 15:42:48 uebayasi Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -111,7 +111,6 @@ struct pmap_physseg {
#define VM_PHYSSEG_MAX 16 /* 1? */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -179,7 +179,6 @@
#define VM_PHYSSEG_MAX 16
#endif
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#define VM_PHYSSEG_NOADD
#ifndef VM_PHYS_SIZE
#define VM_PHYS_SIZE (USRIOSIZE * PAGE_SIZE)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.19 2009/03/06 20:31:51 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.20 2010/11/06 15:42:48 uebayasi Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -78,7 +78,6 @@
/* Physical memory segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD
#define sh3_round_page(x) ((((uint32_t)(x)) + PGOFSET) & ~PGOFSET)
#define sh3_trunc_page(x) ((uint32_t)(x) & ~PGOFSET)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.16 2007/10/25 13:03:05 yamt Exp $ */
/* $NetBSD: vmparam.h,v 1.17 2010/11/06 15:42:49 uebayasi Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -75,13 +75,6 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
/*
* this indicates that we can't add RAM to the VM system after the
* vm system is init'd.
*/
#define VM_PHYSSEG_NOADD
/*
* we support 2 free lists:
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.40 2009/03/06 20:31:52 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.41 2010/11/06 15:42:49 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@ -114,7 +114,6 @@
#define VM_PHYSSEG_MAX 32 /* up to 32 segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.30 2009/03/06 20:31:52 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.31 2010/11/06 15:42:49 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@ -165,7 +165,6 @@
#define VM_PHYSSEG_MAX 32 /* up to 32 segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.13 2009/03/06 20:31:53 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.14 2010/11/06 15:42:49 uebayasi Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -101,7 +101,6 @@
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.35 2010/10/15 15:55:52 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.36 2010/11/06 15:42:49 uebayasi Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -81,7 +81,6 @@
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.45 2009/03/06 20:31:53 joerg Exp $ */
/* $NetBSD: vmparam.h,v 1.46 2010/11/06 15:42:50 uebayasi Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -78,7 +78,6 @@
#endif
#define VM_PHYSSEG_MAX 1
#define VM_PHYSSEG_NOADD
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH /* XXX */
#define VM_NFREELIST 1

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.31 2009/12/08 13:47:27 tsutsui Exp $ */
/* $NetBSD: vmparam.h,v 1.32 2010/11/06 15:42:50 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -153,7 +153,6 @@
#define VM_PHYSSEG_MAX 3
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
/* Actually VM_PSTRAT_UPPERFIRST is needed */
#define VM_PHYSSEG_NOADD
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.2 2007/10/25 13:03:05 yamt Exp $ */
/* $NetBSD: vmparam.h,v 1.3 2010/11/06 15:42:50 uebayasi Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -75,13 +75,6 @@
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
/*
* this indicates that we can't add RAM to the VM system after the
* vm system is init'd.
*/
#define VM_PHYSSEG_NOADD
/*
* we support 2 free lists:
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_page.c,v 1.156 2010/09/24 22:51:51 rmind Exp $ */
/* $NetBSD: uvm_page.c,v 1.157 2010/11/06 15:42:43 uebayasi Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.156 2010/09/24 22:51:51 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.157 2010/11/06 15:42:43 uebayasi Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@ -803,33 +803,7 @@ uvm_page_physload(paddr_t start, paddr_t end, paddr_t avail_start,
*/
if (!preload) {
#if defined(VM_PHYSSEG_NOADD)
panic("uvm_page_physload: tried to add RAM after vm_mem_init");
#else
/* XXXCDC: need some sort of lockout for this case */
paddr_t paddr;
npages = end - start; /* # of pages */
pgs = malloc(sizeof(struct vm_page) * npages,
M_VMPAGE, M_NOWAIT);
if (pgs == NULL) {
printf("uvm_page_physload: can not malloc vm_page "
"structs for segment\n");
printf("\tignoring 0x%lx -> 0x%lx\n", start, end);
return;
}
/* zero data, init phys_addr and free_list, and free pages */
memset(pgs, 0, sizeof(struct vm_page) * npages);
for (lcv = 0, paddr = ctob(start) ;
lcv < npages ; lcv++, paddr += PAGE_SIZE) {
pgs[lcv].phys_addr = paddr;
pgs[lcv].free_list = free_list;
if (atop(paddr) >= avail_start &&
atop(paddr) <= avail_end)
uvm_pagefree(&pgs[lcv]);
}
/* XXXCDC: incomplete: need to update uvmexp.free, what else? */
/* XXXCDC: need hook to tell pmap to rebuild pv_list, etc... */
#endif
} else {
pgs = NULL;
npages = 0;