switch all ports to use uvm_init.c:uvm_md_init()
uvm_setpagesize() is now subsumed within this funciton.
This commit is contained in:
parent
46f58a90c6
commit
e08917ef90
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: start.c,v 1.20 2013/08/18 16:08:42 matt Exp $ */
|
/* $NetBSD: start.c,v 1.21 2016/12/22 14:47:53 cherry Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998, 2000 Ben Harris
|
* Copyright (c) 1998, 2000 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: start.c,v 1.20 2013/08/18 16:08:42 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: start.c,v 1.21 2016/12/22 14:47:53 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_modular.h"
|
#include "opt_modular.h"
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ start(struct bootconfig *initbootconfig)
|
|||||||
boothowto = bootconfig.boothowto;
|
boothowto = bootconfig.boothowto;
|
||||||
physmem = bootconfig.npages;
|
physmem = bootconfig.npages;
|
||||||
uvmexp.pagesize = bootconfig.nbpp;
|
uvmexp.pagesize = bootconfig.nbpp;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/* Any others? */
|
/* Any others? */
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: rpc_machdep.c,v 1.90 2014/10/25 10:58:12 skrll Exp $ */
|
/* $NetBSD: rpc_machdep.c,v 1.91 2016/12/22 14:47:53 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000-2002 Reinoud Zandijk.
|
* Copyright (c) 2000-2002 Reinoud Zandijk.
|
||||||
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: rpc_machdep.c,v 1.90 2014/10/25 10:58:12 skrll Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: rpc_machdep.c,v 1.91 2016/12/22 14:47:53 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
@ -924,7 +924,8 @@ initarm(void *cookie)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
|
|
||||||
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
||||||
paddr_t start = (paddr_t)bootconfig.dram[loop].address;
|
paddr_t start = (paddr_t)bootconfig.dram[loop].address;
|
||||||
paddr_t end = start + (bootconfig.dram[loop].pages * PAGE_SIZE);
|
paddr_t end = start + (bootconfig.dram[loop].pages * PAGE_SIZE);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: eb7500atx_machdep.c,v 1.28 2014/10/25 10:58:12 skrll Exp $ */
|
/* $NetBSD: eb7500atx_machdep.c,v 1.29 2016/12/22 14:47:53 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000-2002 Reinoud Zandijk.
|
* Copyright (c) 2000-2002 Reinoud Zandijk.
|
||||||
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: eb7500atx_machdep.c,v 1.28 2014/10/25 10:58:12 skrll Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: eb7500atx_machdep.c,v 1.29 2016/12/22 14:47:53 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
@ -862,7 +862,8 @@ initarm(void *cookie)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
|
|
||||||
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
||||||
paddr_t start = (paddr_t)bootconfig.dram[loop].address;
|
paddr_t start = (paddr_t)bootconfig.dram[loop].address;
|
||||||
paddr_t end = start + (bootconfig.dram[loop].pages * PAGE_SIZE);
|
paddr_t end = start + (bootconfig.dram[loop].pages * PAGE_SIZE);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.54 2015/06/30 02:39:03 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.55 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||||
@ -68,7 +68,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.54 2015/06/30 02:39:03 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.55 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_algor_p4032.h"
|
#include "opt_algor_p4032.h"
|
||||||
#include "opt_algor_p5064.h"
|
#include "opt_algor_p5064.h"
|
||||||
@ -198,7 +198,7 @@ mach_init(int argc, char *argv[], char *envp[])
|
|||||||
* Initialize PAGE_SIZE-dependent variables.
|
* Initialize PAGE_SIZE-dependent variables.
|
||||||
*/
|
*/
|
||||||
led_display('p', 'g', 's', 'z');
|
led_display('p', 'g', 's', 'z');
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize bus space tags and bring up the console.
|
* Initialize bus space tags and bring up the console.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.347 2016/10/13 16:18:20 flxd Exp $ */
|
/* $NetBSD: machdep.c,v 1.348 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
||||||
@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.347 2016/10/13 16:18:20 flxd Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.348 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -372,7 +372,7 @@ nobootinfo:
|
|||||||
panic("page size %lu != %d?!", hwrpb->rpb_page_size,
|
panic("page size %lu != %d?!", hwrpb->rpb_page_size,
|
||||||
ALPHA_PGBYTES);
|
ALPHA_PGBYTES);
|
||||||
uvmexp.pagesize = hwrpb->rpb_page_size;
|
uvmexp.pagesize = hwrpb->rpb_page_size;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find out what hardware we're on, and do basic initialization.
|
* Find out what hardware we're on, and do basic initialization.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.240 2016/12/20 14:03:15 maxv Exp $ */
|
/* $NetBSD: machdep.c,v 1.241 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
|
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
|
||||||
@ -111,7 +111,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.240 2016/12/20 14:03:15 maxv Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.241 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
/* #define XENDEBUG_LOW */
|
/* #define XENDEBUG_LOW */
|
||||||
|
|
||||||
@ -1581,7 +1581,7 @@ init_x86_64(paddr_t first_avail)
|
|||||||
/*
|
/*
|
||||||
* Initialize PAGE_SIZE-dependent variables.
|
* Initialize PAGE_SIZE-dependent variables.
|
||||||
*/
|
*/
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
uvmexp.ncolors = 2;
|
uvmexp.ncolors = 2;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap_bootstrap.c,v 1.9 2009/12/06 06:41:29 tsutsui Exp $ */
|
/* $NetBSD: pmap_bootstrap.c,v 1.10 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
@ -65,7 +65,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.9 2009/12/06 06:41:29 tsutsui Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.10 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -125,7 +125,7 @@ pmap_bootstrap(paddr_t firstaddr, paddr_t loadaddr)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
uvmexp.pagesize = NBPG;
|
uvmexp.pagesize = NBPG;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* May want to check if first segment is Zorro-II?
|
* May want to check if first segment is Zorro-II?
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.51 2012/02/15 12:11:42 phx Exp $ */
|
/* $NetBSD: machdep.c,v 1.52 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||||
@ -32,7 +32,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.51 2012/02/15 12:11:42 phx Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.52 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/device.h>
|
#include <sys/device.h>
|
||||||
@ -560,10 +560,7 @@ initppc(u_int startkernel, u_int endkernel)
|
|||||||
|
|
||||||
/* XXX bus_space_init() not needed here */
|
/* XXX bus_space_init() not needed here */
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the page size
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize pmap module
|
* Initialize pmap module
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.129 2015/06/30 02:39:03 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.130 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
|
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -39,7 +39,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.129 2015/06/30 02:39:03 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.130 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_ddbparam.h"
|
#include "opt_ddbparam.h"
|
||||||
@ -306,10 +306,7 @@ mach_init(int argc, char *argv[], u_int bim, void *bip)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the VM page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/* make sure that we don't call BIOS console from now on */
|
/* make sure that we don't call BIOS console from now on */
|
||||||
cn_tab = NULL;
|
cn_tab = NULL;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: arm32_boot.c,v 1.17 2016/03/08 08:01:23 skrll Exp $ */
|
/* $NetBSD: arm32_boot.c,v 1.18 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2003, 2005 Genetec Corporation. All rights reserved.
|
* Copyright (c) 2002, 2003, 2005 Genetec Corporation. All rights reserved.
|
||||||
@ -123,7 +123,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__KERNEL_RCSID(1, "$NetBSD: arm32_boot.c,v 1.17 2016/03/08 08:01:23 skrll Exp $");
|
__KERNEL_RCSID(1, "$NetBSD: arm32_boot.c,v 1.18 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -231,7 +231,7 @@ initarm_common(vaddr_t kvm_base, vsize_t kvm_size,
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
|
|
||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("pmap_physload ");
|
printf("pmap_physload ");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: at91bus.c,v 1.18 2014/09/13 18:08:38 matt Exp $ */
|
/* $NetBSD: at91bus.c,v 1.19 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Embedtronics Oy
|
* Copyright (c) 2007 Embedtronics Oy
|
||||||
@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: at91bus.c,v 1.18 2014/09/13 18:08:38 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: at91bus.c,v 1.19 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -511,7 +511,7 @@ at91bus_setup(BootConfig *mem)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap_bootstrap.c,v 1.7 2010/04/13 09:49:54 tsutsui Exp $ */
|
/* $NetBSD: pmap_bootstrap.c,v 1.8 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -108,7 +108,7 @@ pmap_bootstrap(vaddr_t vstart)
|
|||||||
* Announce page-size to the VM-system
|
* Announce page-size to the VM-system
|
||||||
*/
|
*/
|
||||||
uvmexp.pagesize = NBPG;
|
uvmexp.pagesize = NBPG;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Setup physical address ranges
|
* Setup physical address ranges
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.118 2016/07/27 11:13:14 skrll Exp $ */
|
/* $NetBSD: machdep.c,v 1.119 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2006 Izumi Tsutsui. All rights reserved.
|
* Copyright (c) 2006 Izumi Tsutsui. All rights reserved.
|
||||||
@ -50,7 +50,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.118 2016/07/27 11:13:14 skrll Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.119 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -252,7 +252,7 @@ mach_init(int32_t memsize32, u_int bim, int32_t bip32)
|
|||||||
if (bi_msg != NULL)
|
if (bi_msg != NULL)
|
||||||
printf("%s: magic=%#x bip=%p\n", bi_msg, bim, bip);
|
printf("%s: magic=%#x bip=%p\n", bi_msg, bim, bip);
|
||||||
|
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The boot command is passed in the top 512 bytes,
|
* The boot command is passed in the top 512 bytes,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.11 2015/06/11 08:22:08 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.12 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
@ -39,7 +39,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.11 2015/06/11 08:22:08 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.12 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
|
|
||||||
@ -225,10 +225,7 @@ mach_init(int argc, char *argv[], int code, intptr_t cv, u_int bim, char *bip)
|
|||||||
if (bootinfo_msg != NULL)
|
if (bootinfo_msg != NULL)
|
||||||
printf(bootinfo_msg);
|
printf(bootinfo_msg);
|
||||||
#endif
|
#endif
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the VM page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy exception-dispatch code down to exception vector.
|
* Copy exception-dispatch code down to exception vector.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.4 2014/09/13 18:08:40 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.5 2016/12/22 14:47:54 cherry Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2012, 2013 KIYOHARA Takashi
|
* Copyright (c) 2012, 2013 KIYOHARA Takashi
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -26,7 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.4 2014/09/13 18:08:40 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.5 2016/12/22 14:47:54 cherry Exp $");
|
||||||
|
|
||||||
#include "clpscom.h"
|
#include "clpscom.h"
|
||||||
#include "clpslcd.h"
|
#include "clpslcd.h"
|
||||||
@ -440,7 +440,7 @@ initarm(void *arg)
|
|||||||
undefined_init();
|
undefined_init();
|
||||||
|
|
||||||
/* Load memory into UVM. */
|
/* Load memory into UVM. */
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(
|
uvm_page_physload(
|
||||||
atop(_end_physical), atop(physical_end),
|
atop(_end_physical), atop(physical_end),
|
||||||
atop(_end_physical), atop(physical_end),
|
atop(_end_physical), atop(physical_end),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: brh_machdep.c,v 1.43 2014/09/13 18:08:38 matt Exp $ */
|
/* $NetBSD: brh_machdep.c,v 1.44 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: brh_machdep.c,v 1.43 2014/09/13 18:08:38 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: brh_machdep.c,v 1.44 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_pmap_debug.h"
|
#include "opt_pmap_debug.h"
|
||||||
@ -757,7 +757,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: armadillo9_machdep.c,v 1.28 2014/09/13 18:08:38 matt Exp $ */
|
/* $NetBSD: armadillo9_machdep.c,v 1.29 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||||
@ -110,7 +110,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: armadillo9_machdep.c,v 1.28 2014/09/13 18:08:38 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: armadillo9_machdep.c,v 1.29 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -813,7 +813,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: g42xxeb_machdep.c,v 1.29 2014/09/13 18:08:38 matt Exp $ */
|
/* $NetBSD: g42xxeb_machdep.c,v 1.30 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2003, 2004, 2005 Genetec Corporation.
|
* Copyright (c) 2002, 2003, 2004, 2005 Genetec Corporation.
|
||||||
@ -828,7 +828,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: gemini_machdep.c,v 1.22 2013/08/18 15:58:20 matt Exp $ */
|
/* $NetBSD: gemini_machdep.c,v 1.23 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/* adapted from:
|
/* adapted from:
|
||||||
* NetBSD: sdp24xx_machdep.c,v 1.4 2008/08/27 11:03:10 matt Exp
|
* NetBSD: sdp24xx_machdep.c,v 1.4 2008/08/27 11:03:10 matt Exp
|
||||||
@ -129,7 +129,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: gemini_machdep.c,v 1.22 2013/08/18 15:58:20 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: gemini_machdep.c,v 1.23 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_machdep.h"
|
#include "opt_machdep.h"
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -707,7 +707,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
|
|
||||||
#if (GEMINI_RAM_RESV_PBASE != 0)
|
#if (GEMINI_RAM_RESV_PBASE != 0)
|
||||||
uvm_page_physload(atop(physical_freestart), atop(GEMINI_RAM_RESV_PBASE),
|
uvm_page_physload(atop(physical_freestart), atop(GEMINI_RAM_RESV_PBASE),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: hdlg_machdep.c,v 1.22 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: hdlg_machdep.c,v 1.23 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: hdlg_machdep.c,v 1.22 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: hdlg_machdep.c,v 1.23 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -595,7 +595,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: imx31lk_machdep.c,v 1.18 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: imx31lk_machdep.c,v 1.19 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Startup routines for the ZOOM iMX31 LITEKIT.
|
* Startup routines for the ZOOM iMX31 LITEKIT.
|
||||||
@ -110,7 +110,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: imx31lk_machdep.c,v 1.18 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: imx31lk_machdep.c,v 1.19 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -692,7 +692,7 @@ printf("%s: textsize %#lx, totalsize %#lx\n",
|
|||||||
|
|
||||||
/* Load memory into UVM. */
|
/* Load memory into UVM. */
|
||||||
printf("page ");
|
printf("page ");
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: iq80310_machdep.c,v 1.85 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: iq80310_machdep.c,v 1.86 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: iq80310_machdep.c,v 1.85 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: iq80310_machdep.c,v 1.86 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_pmap_debug.h"
|
#include "opt_pmap_debug.h"
|
||||||
@ -717,7 +717,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: iq80321_machdep.c,v 1.55 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: iq80321_machdep.c,v 1.56 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: iq80321_machdep.c,v 1.55 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: iq80321_machdep.c,v 1.56 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -742,7 +742,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ixdp425_machdep.c,v 1.36 2015/03/05 08:09:44 skrll Exp $ */
|
/* $NetBSD: ixdp425_machdep.c,v 1.37 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003
|
* Copyright (c) 2003
|
||||||
* Ichiro FUKUHARA <ichiro@ichiro.org>.
|
* Ichiro FUKUHARA <ichiro@ichiro.org>.
|
||||||
@ -64,7 +64,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ixdp425_machdep.c,v 1.36 2015/03/05 08:09:44 skrll Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ixdp425_machdep.c,v 1.37 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -709,7 +709,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ixm1200_machdep.c,v 1.56 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: ixm1200_machdep.c,v 1.57 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2003
|
* Copyright (c) 2002, 2003
|
||||||
@ -61,7 +61,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ixm1200_machdep.c,v 1.56 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ixm1200_machdep.c,v 1.57 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_modular.h"
|
#include "opt_modular.h"
|
||||||
@ -676,7 +676,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: lubbock_machdep.c,v 1.33 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: lubbock_machdep.c,v 1.34 2016/12/22 14:47:55 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2003, 2005 Genetec Corporation. All rights reserved.
|
* Copyright (c) 2002, 2003, 2005 Genetec Corporation. All rights reserved.
|
||||||
@ -112,7 +112,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: lubbock_machdep.c,v 1.33 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: lubbock_machdep.c,v 1.34 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -899,7 +899,7 @@ initarm(void *arg)
|
|||||||
|
|
||||||
/* Load memory into UVM. */
|
/* Load memory into UVM. */
|
||||||
printf("page ");
|
printf("page ");
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -131,7 +131,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: mini2440_machdep.c,v 1.9 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: mini2440_machdep.c,v 1.10 2016/12/22 14:47:55 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -886,7 +886,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: npwr_fc_machdep.c,v 1.20 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: npwr_fc_machdep.c,v 1.21 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: npwr_fc_machdep.c,v 1.20 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: npwr_fc_machdep.c,v 1.21 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -712,7 +712,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: nslu2_machdep.c,v 1.26 2015/03/05 08:09:44 skrll Exp $ */
|
/* $NetBSD: nslu2_machdep.c,v 1.27 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||||
@ -94,7 +94,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: nslu2_machdep.c,v 1.26 2015/03/05 08:09:44 skrll Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: nslu2_machdep.c,v 1.27 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -777,7 +777,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: osk5912_machdep.c,v 1.15 2013/08/18 15:58:21 matt Exp $ */
|
/* $NetBSD: osk5912_machdep.c,v 1.16 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Machine dependent functions for kernel setup for TI OSK5912 board.
|
* Machine dependent functions for kernel setup for TI OSK5912 board.
|
||||||
@ -99,7 +99,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: osk5912_machdep.c,v 1.15 2013/08/18 15:58:21 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: osk5912_machdep.c,v 1.16 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_machdep.h"
|
#include "opt_machdep.h"
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -447,7 +447,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: smdk2410_machdep.c,v 1.35 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: smdk2410_machdep.c,v 1.36 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2003 Fujitsu Component Limited
|
* Copyright (c) 2002, 2003 Fujitsu Component Limited
|
||||||
@ -105,7 +105,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: smdk2410_machdep.c,v 1.35 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: smdk2410_machdep.c,v 1.36 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -844,7 +844,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: smdk2800_machdep.c,v 1.42 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: smdk2800_machdep.c,v 1.43 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2003, 2005 Fujitsu Component Limited
|
* Copyright (c) 2002, 2003, 2005 Fujitsu Component Limited
|
||||||
@ -106,7 +106,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: smdk2800_machdep.c,v 1.42 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: smdk2800_machdep.c,v 1.43 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -761,7 +761,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: sdp24xx_machdep.c,v 1.16 2013/08/18 15:58:21 matt Exp $ */
|
/* $NetBSD: sdp24xx_machdep.c,v 1.17 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Machine dependent functions for kernel setup for TI OSK5912 board.
|
* Machine dependent functions for kernel setup for TI OSK5912 board.
|
||||||
@ -125,7 +125,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: sdp24xx_machdep.c,v 1.16 2013/08/18 15:58:21 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: sdp24xx_machdep.c,v 1.17 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_machdep.h"
|
#include "opt_machdep.h"
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -541,7 +541,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: tsarm_machdep.c,v 1.23 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: tsarm_machdep.c,v 1.24 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: tsarm_machdep.c,v 1.23 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: tsarm_machdep.c,v 1.24 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -726,7 +726,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: viper_machdep.c,v 1.24 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: viper_machdep.c,v 1.25 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Startup routines for the Arcom Viper. Below you can trace the
|
* Startup routines for the Arcom Viper. Below you can trace the
|
||||||
@ -112,7 +112,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: viper_machdep.c,v 1.24 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: viper_machdep.c,v 1.25 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -746,7 +746,7 @@ initarm(void *arg)
|
|||||||
|
|
||||||
/* Load memory into UVM. */
|
/* Load memory into UVM. */
|
||||||
printf("page ");
|
printf("page ");
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.24 2015/06/26 22:12:21 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.25 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko.
|
* Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko.
|
||||||
@ -70,7 +70,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2015/06/26 22:12:21 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.25 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -292,10 +292,7 @@ mach_init(int argc, char **argv, void *a2, void *a3)
|
|||||||
*/
|
*/
|
||||||
mips_vector_init(NULL, false);
|
mips_vector_init(NULL, false);
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the VM page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
adm5120_setcpufreq();
|
adm5120_setcpufreq();
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.55 2015/06/26 22:11:10 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.56 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2006 Itronix Inc.
|
* Copyright (c) 2006 Itronix Inc.
|
||||||
@ -70,7 +70,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.55 2015/06/26 22:11:10 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.56 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -179,10 +179,7 @@ mach_init(int argc, char **argv, yamon_env_var *envp, u_long memsize)
|
|||||||
*/
|
*/
|
||||||
mips_vector_init(NULL, false);
|
mips_vector_init(NULL, false);
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the VM page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use YAMON's CPU frequency if available.
|
* Use YAMON's CPU frequency if available.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.30 2015/06/26 22:11:10 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.31 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
|
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
|
||||||
@ -110,7 +110,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.30 2015/06/26 22:11:10 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.31 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -207,10 +207,7 @@ mach_init(void)
|
|||||||
*/
|
*/
|
||||||
cal_timer();
|
cal_timer();
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the VM page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Look at arguments passed to us and compute boothowto.
|
* Look at arguments passed to us and compute boothowto.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.8 2016/10/20 07:26:03 martin Exp $ */
|
/* $NetBSD: machdep.c,v 1.9 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
||||||
@ -114,7 +114,7 @@
|
|||||||
#include "opt_multiprocessor.h"
|
#include "opt_multiprocessor.h"
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.8 2016/10/20 07:26:03 martin Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.9 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -220,8 +220,7 @@ mach_init(uint64_t arg0, uint64_t arg1, uint64_t arg2, uint64_t arg3)
|
|||||||
|
|
||||||
mach_init_vector();
|
mach_init_vector();
|
||||||
|
|
||||||
/* set the VM page size */
|
uvm_md_init();
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
mach_init_bus_space();
|
mach_init_bus_space();
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.19 2016/07/11 16:18:56 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.20 2016/12/22 14:47:56 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
||||||
@ -74,7 +74,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.19 2016/07/11 16:18:56 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.20 2016/12/22 14:47:56 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_execfmt.h"
|
#include "opt_execfmt.h"
|
||||||
@ -235,8 +235,7 @@ mach_init(int argc, char **argv, char **envp32, void *callvec)
|
|||||||
*/
|
*/
|
||||||
mips_vector_init(NULL, false);
|
mips_vector_init(NULL, false);
|
||||||
|
|
||||||
/* set the VM page size */
|
uvm_md_init();
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
memsize = 256*1024*1024;
|
memsize = 256*1024*1024;
|
||||||
physmem = btoc(memsize);
|
physmem = btoc(memsize);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.11 2016/08/26 13:53:36 skrll Exp $ */
|
/* $NetBSD: machdep.c,v 1.12 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2014 Michael Lorenz
|
* Copyright (c) 2014 Michael Lorenz
|
||||||
@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.11 2016/08/26 13:53:36 skrll Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.12 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -176,7 +176,7 @@ mach_init(void)
|
|||||||
cpu_setmodel("Ingenic XBurst");
|
cpu_setmodel("Ingenic XBurst");
|
||||||
mips_vector_init(NULL, false);
|
mips_vector_init(NULL, false);
|
||||||
cal_timer();
|
cal_timer();
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
/*
|
/*
|
||||||
* Look at arguments passed to us and compute boothowto.
|
* Look at arguments passed to us and compute boothowto.
|
||||||
*/
|
*/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.6 2014/03/24 20:06:31 christos Exp $ */
|
/* $NetBSD: machdep.c,v 1.7 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
||||||
@ -90,7 +90,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2014/03/24 20:06:31 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.7 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_execfmt.h"
|
#include "opt_execfmt.h"
|
||||||
@ -316,9 +316,8 @@ mach_init(int32_t argc, int32_t argva, int32_t enva, int32_t callvec,
|
|||||||
DPRINTF(("mips_vector_init "));
|
DPRINTF(("mips_vector_init "));
|
||||||
mips_vector_init(NULL, false);
|
mips_vector_init(NULL, false);
|
||||||
|
|
||||||
DPRINTF(("uvm_setpagesize\n"));
|
DPRINTF(("uvm_md_init\n"));
|
||||||
/* set the VM page size */
|
uvm_md_init();
|
||||||
uvm_setpagesize();
|
|
||||||
#if NKSYMS || defined(DDB) || defined(MODULAR)
|
#if NKSYMS || defined(DDB) || defined(MODULAR)
|
||||||
//ksyms_addsyms_elf((vaddr_t)esym - (vaddr_t)ssym, ssym, esym);
|
//ksyms_addsyms_elf((vaddr_t)esym - (vaddr_t)ssym, ssym, esym);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.45 2016/07/11 16:18:56 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.46 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
||||||
@ -74,7 +74,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.45 2016/07/11 16:18:56 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.46 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_execfmt.h"
|
#include "opt_execfmt.h"
|
||||||
@ -181,8 +181,7 @@ mach_init(int argc, char **argv, yamon_env_var *envp, u_long memsize)
|
|||||||
*/
|
*/
|
||||||
mips_vector_init(NULL, false);
|
mips_vector_init(NULL, false);
|
||||||
|
|
||||||
/* set the VM page size */
|
uvm_md_init();
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
physmem = btoc(memsize);
|
physmem = btoc(memsize);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.12 2016/10/05 15:54:58 ryo Exp $ */
|
/* $NetBSD: machdep.c,v 1.13 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2011 CradlePoint Technology, Inc.
|
* Copyright (c) 2011 CradlePoint Technology, Inc.
|
||||||
@ -28,7 +28,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.12 2016/10/05 15:54:58 ryo Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.13 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/boot_flag.h>
|
#include <sys/boot_flag.h>
|
||||||
@ -146,10 +146,7 @@ mach_init(void)
|
|||||||
*/
|
*/
|
||||||
cal_timer();
|
cal_timer();
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the VM page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Look at arguments passed to us and compute boothowto.
|
* Look at arguments passed to us and compute boothowto.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.17 2015/06/30 02:39:03 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.18 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
||||||
@ -74,7 +74,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.17 2015/06/30 02:39:03 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.18 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#define __INTR_PRIVATE
|
#define __INTR_PRIVATE
|
||||||
|
|
||||||
@ -265,8 +265,7 @@ mach_init(int argc, int32_t *argv, void *envp, int64_t infop)
|
|||||||
/* get system info from firmware */
|
/* get system info from firmware */
|
||||||
memsize = rmixlfw_init(infop);
|
memsize = rmixlfw_init(infop);
|
||||||
|
|
||||||
/* set the VM page size */
|
uvm_md_init();
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
physmem = btoc(memsize);
|
physmem = btoc(memsize);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.31 2014/02/25 14:33:32 martin Exp $ */
|
/* $NetBSD: machdep.c,v 1.32 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||||
@ -32,7 +32,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.31 2014/02/25 14:33:32 martin Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.32 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_marvell.h"
|
#include "opt_marvell.h"
|
||||||
#include "opt_modular.h"
|
#include "opt_modular.h"
|
||||||
@ -224,10 +224,7 @@ initppc(u_int startkernel, u_int endkernel, u_int args, void *btinfo)
|
|||||||
|
|
||||||
consinit();
|
consinit();
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize pmap module.
|
* Initialize pmap module.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.41 2015/01/30 15:04:35 nonaka Exp $ */
|
/* $NetBSD: machdep.c,v 1.42 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
|
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -1267,10 +1267,7 @@ initppc(vaddr_t startkernel, vaddr_t endkernel,
|
|||||||
|
|
||||||
mtspr(SPR_TCR, TCR_WIE | mfspr(SPR_TCR));
|
mtspr(SPR_TCR, TCR_WIE | mfspr(SPR_TCR));
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize the pmap.
|
* Initialize the pmap.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.12 2013/03/01 18:25:39 joerg Exp $ */
|
/* $NetBSD: machdep.c,v 1.13 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||||
@ -61,7 +61,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.12 2013/03/01 18:25:39 joerg Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.13 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_compat_netbsd.h"
|
#include "opt_compat_netbsd.h"
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -218,10 +218,7 @@ initppc(u_int startkernel, u_int endkernel, u_int args, void *btinfo)
|
|||||||
|
|
||||||
printf("console set up\n");
|
printf("console set up\n");
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize pmap module.
|
* Initialize pmap module.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.26 2014/03/24 20:06:32 christos Exp $ */
|
/* $NetBSD: machdep.c,v 1.27 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001, 2004, 2005 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001, 2004, 2005 The NetBSD Foundation, Inc.
|
||||||
@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.26 2014/03/24 20:06:32 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.27 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ mach_init(int argc, char *argv[], struct bootinfo *bi)
|
|||||||
|
|
||||||
option(argc, argv, bi);
|
option(argc, argv, bi);
|
||||||
|
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/* Fill mem_clusters and mem_cluster_cnt */
|
/* Fill mem_clusters and mem_cluster_cnt */
|
||||||
(*platform.mem_init)(kernel_text,
|
(*platform.mem_init)(kernel_text,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pxa2x0_hpc_machdep.c,v 1.22 2014/09/13 18:09:50 matt Exp $ */
|
/* $NetBSD: pxa2x0_hpc_machdep.c,v 1.23 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||||
@ -40,7 +40,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pxa2x0_hpc_machdep.c,v 1.22 2014/09/13 18:09:50 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pxa2x0_hpc_machdep.c,v 1.23 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_dram_pages.h"
|
#include "opt_dram_pages.h"
|
||||||
@ -608,7 +608,7 @@ init_pxa2x0(int argc, char **argv, struct bootinfo *bi)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Load memory into UVM. */
|
/* Load memory into UVM. */
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
||||||
paddr_t dblk_start = (paddr_t)bootconfig.dram[loop].address;
|
paddr_t dblk_start = (paddr_t)bootconfig.dram[loop].address;
|
||||||
paddr_t dblk_end = dblk_start
|
paddr_t dblk_end = dblk_start
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: sa11x0_hpc_machdep.c,v 1.10 2014/09/13 18:09:50 matt Exp $ */
|
/* $NetBSD: sa11x0_hpc_machdep.c,v 1.11 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||||
@ -40,7 +40,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: sa11x0_hpc_machdep.c,v 1.10 2014/09/13 18:09:50 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: sa11x0_hpc_machdep.c,v 1.11 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_dram_pages.h"
|
#include "opt_dram_pages.h"
|
||||||
@ -537,7 +537,7 @@ init_sa11x0(int argc, char **argv, struct bootinfo *bi)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Load memory into UVM. */
|
/* Load memory into UVM. */
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
||||||
paddr_t dblk_start = (paddr_t)bootconfig.dram[loop].address;
|
paddr_t dblk_start = (paddr_t)bootconfig.dram[loop].address;
|
||||||
paddr_t dblk_end = dblk_start
|
paddr_t dblk_end = dblk_start
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.120 2015/06/30 02:39:03 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.121 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 Shin Takemura, All rights reserved.
|
* Copyright (c) 1999 Shin Takemura, All rights reserved.
|
||||||
@ -69,7 +69,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.120 2015/06/30 02:39:03 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.121 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_vr41xx.h"
|
#include "opt_vr41xx.h"
|
||||||
#include "opt_tx39xx.h"
|
#include "opt_tx39xx.h"
|
||||||
@ -310,7 +310,7 @@ mach_init(int argc, char *argv[], struct bootinfo *bi)
|
|||||||
* Set the VM page size.
|
* Set the VM page size.
|
||||||
*/
|
*/
|
||||||
uvmexp.pagesize = NBPG; /* Notify the VM system of our page size. */
|
uvmexp.pagesize = NBPG; /* Notify the VM system of our page size. */
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy exception-dispatch code down to exception vector.
|
* Copy exception-dispatch code down to exception vector.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap.c,v 1.99 2014/08/08 07:30:51 skrll Exp $ */
|
/* $NetBSD: pmap.c,v 1.100 2016/12/22 14:47:57 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||||
@ -65,7 +65,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.99 2014/08/08 07:30:51 skrll Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.100 2016/12/22 14:47:57 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_cputype.h"
|
#include "opt_cputype.h"
|
||||||
|
|
||||||
@ -675,7 +675,7 @@ pmap_bootstrap(vaddr_t vstart)
|
|||||||
|
|
||||||
DPRINTF(PDB_FOLLOW|PDB_INIT, ("%s(0x%lx)\n", __func__, vstart));
|
DPRINTF(PDB_FOLLOW|PDB_INIT, ("%s(0x%lx)\n", __func__, vstart));
|
||||||
|
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
hppa_prot[UVM_PROT_NONE] = TLB_AR_NA;
|
hppa_prot[UVM_PROT_NONE] = TLB_AR_NA;
|
||||||
hppa_prot[UVM_PROT_READ] = TLB_AR_R;
|
hppa_prot[UVM_PROT_READ] = TLB_AR_R;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.770 2016/12/20 14:03:15 maxv Exp $ */
|
/* $NetBSD: machdep.c,v 1.771 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
|
* Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
|
||||||
@ -67,7 +67,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.770 2016/12/20 14:03:15 maxv Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.771 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_beep.h"
|
#include "opt_beep.h"
|
||||||
#include "opt_compat_ibcs2.h"
|
#include "opt_compat_ibcs2.h"
|
||||||
@ -1188,10 +1188,7 @@ init386(paddr_t first_avail)
|
|||||||
cpu_info_primary.ci_pae_l3_pdir = (pd_entry_t *)(rcr3() + KERNBASE);
|
cpu_info_primary.ci_pae_l3_pdir = (pd_entry_t *)(rcr3() + KERNBASE);
|
||||||
#endif /* PAE && !XEN */
|
#endif /* PAE && !XEN */
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Initialize PAGE_SIZE-dependent variables.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Start with 2 color bins -- this is just a guess to get us
|
* Start with 2 color bins -- this is just a guess to get us
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.35 2014/03/14 17:45:37 cherry Exp $ */
|
/* $NetBSD: machdep.c,v 1.36 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2003,2004 Marcel Moolenaar
|
* Copyright (c) 2003,2004 Marcel Moolenaar
|
||||||
@ -465,7 +465,7 @@ ia64_init(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
uvmexp.pagesize = PAGE_SIZE;
|
uvmexp.pagesize = PAGE_SIZE;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: iyonix_machdep.c,v 1.24 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: iyonix_machdep.c,v 1.25 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||||
@ -73,7 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: iyonix_machdep.c,v 1.24 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: iyonix_machdep.c,v 1.25 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -780,7 +780,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap_motorola.c,v 1.67 2013/10/25 20:51:14 martin Exp $ */
|
/* $NetBSD: pmap_motorola.c,v 1.68 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
@ -119,7 +119,7 @@
|
|||||||
#include "opt_m68k_arch.h"
|
#include "opt_m68k_arch.h"
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.67 2013/10/25 20:51:14 martin Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.68 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -340,7 +340,7 @@ pmap_bootstrap_finalize(void)
|
|||||||
* and they require this earlier.
|
* and they require this earlier.
|
||||||
*/
|
*/
|
||||||
uvmexp.pagesize = NBPG;
|
uvmexp.pagesize = NBPG;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.79 2015/06/26 22:55:40 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.80 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.79 2015/06/26 22:55:40 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.80 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||||
|
|
||||||
@ -211,10 +211,7 @@ mach_init(int argc, char *argv[], char *envp[], u_int bim, char *bip)
|
|||||||
if (bi_msg != NULL)
|
if (bi_msg != NULL)
|
||||||
printf(bi_msg);
|
printf(bi_msg);
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the VM page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/* Find out how much memory is available. */
|
/* Find out how much memory is available. */
|
||||||
physmem = memsize_scan(kernend);
|
physmem = memsize_scan(kernend);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: netwinder_machdep.c,v 1.83 2014/09/13 18:08:39 matt Exp $ */
|
/* $NetBSD: netwinder_machdep.c,v 1.84 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997,1998 Mark Brinicombe.
|
* Copyright (c) 1997,1998 Mark Brinicombe.
|
||||||
@ -40,7 +40,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: netwinder_machdep.c,v 1.83 2014/09/13 18:08:39 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: netwinder_machdep.c,v 1.84 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_pmap_debug.h"
|
#include "opt_pmap_debug.h"
|
||||||
@ -738,7 +738,7 @@ initarm(void *arg)
|
|||||||
|
|
||||||
/* Load memory into UVM. */
|
/* Load memory into UVM. */
|
||||||
printf("page ");
|
printf("page ");
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
|
|
||||||
/* XXX Always one RAM block -- nuke the loop. */
|
/* XXX Always one RAM block -- nuke the loop. */
|
||||||
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
for (loop = 0; loop < bootconfig.dramblocks; loop++) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.118 2016/07/21 19:49:59 christos Exp $ */
|
/* $NetBSD: machdep.c,v 1.119 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.118 2016/07/21 19:49:59 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.119 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||||
|
|
||||||
@ -240,10 +240,7 @@ mach_init(int x_boothowto, int x_bootdev, int x_bootname, int x_maxmem)
|
|||||||
kernend = (char *)mips_round_page(esym);
|
kernend = (char *)mips_round_page(esym);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the VM page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
boothowto = x_boothowto;
|
boothowto = x_boothowto;
|
||||||
bootdev = x_bootdev;
|
bootdev = x_bootdev;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.31 2015/06/30 02:39:04 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.32 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||||
@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.31 2015/06/30 02:39:04 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.32 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kloader.h"
|
#include "opt_kloader.h"
|
||||||
@ -114,7 +114,8 @@ mach_init(void)
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
bootinfo_dump();
|
bootinfo_dump();
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
physmem = atop(PS2_MEMORY_SIZE);
|
physmem = atop(PS2_MEMORY_SIZE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.250 2016/02/01 17:39:41 christos Exp $ */
|
/* $NetBSD: machdep.c,v 1.251 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
@ -39,7 +39,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.250 2016/02/01 17:39:41 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.251 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_modular.h"
|
#include "opt_modular.h"
|
||||||
@ -220,10 +220,7 @@ mach_init(int argc, int32_t *argv32, int code, intptr_t cv, u_int bim, char *bip
|
|||||||
#else
|
#else
|
||||||
__USE(bootinfo_msg);
|
__USE(bootinfo_msg);
|
||||||
#endif
|
#endif
|
||||||
/*
|
uvm_md_init();
|
||||||
* Set the VM page size.
|
|
||||||
*/
|
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy exception-dispatch code down to exception vector.
|
* Copy exception-dispatch code down to exception vector.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ibm4xx_machdep.c,v 1.21 2016/12/16 04:27:03 rin Exp $ */
|
/* $NetBSD: ibm4xx_machdep.c,v 1.22 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
/* Original: ibm40x_machdep.c,v 1.3 2005/01/17 17:19:36 shige Exp $ */
|
/* Original: ibm40x_machdep.c,v 1.3 2005/01/17 17:19:36 shige Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -68,7 +68,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ibm4xx_machdep.c,v 1.21 2016/12/16 04:27:03 rin Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ibm4xx_machdep.c,v 1.22 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_compat_netbsd.h"
|
#include "opt_compat_netbsd.h"
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -228,7 +228,7 @@ ibm4xx_init(vaddr_t startkernel, vaddr_t endkernel, void (*handler)(void))
|
|||||||
*/
|
*/
|
||||||
consinit();
|
consinit();
|
||||||
|
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize pmap module.
|
* Initialize pmap module.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap.c,v 1.72 2012/01/27 19:48:39 para Exp $ */
|
/* $NetBSD: pmap.c,v 1.73 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001 Wasabi Systems, Inc.
|
* Copyright 2001 Wasabi Systems, Inc.
|
||||||
@ -67,7 +67,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.72 2012/01/27 19:48:39 para Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.73 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/cpu.h>
|
#include <sys/cpu.h>
|
||||||
@ -294,7 +294,7 @@ pmap_bootstrap(u_int kernelstart, u_int kernelend)
|
|||||||
* Announce page-size to the VM-system
|
* Announce page-size to the VM-system
|
||||||
*/
|
*/
|
||||||
uvmexp.pagesize = NBPG;
|
uvmexp.pagesize = NBPG;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get memory.
|
* Get memory.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ofwoea_machdep.c,v 1.38 2014/03/25 16:41:37 matt Exp $ */
|
/* $NetBSD: ofwoea_machdep.c,v 1.39 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||||
@ -30,7 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.38 2014/03/25 16:41:37 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.39 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ppcarch.h"
|
#include "opt_ppcarch.h"
|
||||||
#include "opt_compat_netbsd.h"
|
#include "opt_compat_netbsd.h"
|
||||||
@ -232,7 +232,7 @@ ofwoea_initppc(u_int startkernel, u_int endkernel, char *args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
pmap_bootstrap(startkernel, endkernel);
|
pmap_bootstrap(startkernel, endkernel);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: prep_machdep.c,v 1.10 2012/02/11 13:53:59 kiyohara Exp $ */
|
/* $NetBSD: prep_machdep.c,v 1.11 2016/12/22 14:47:58 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||||
@ -37,7 +37,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: prep_machdep.c,v 1.10 2012/02/11 13:53:59 kiyohara Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: prep_machdep.c,v 1.11 2016/12/22 14:47:58 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_modular.h"
|
#include "opt_modular.h"
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ prep_initppc(u_long startkernel, u_long endkernel, u_int args)
|
|||||||
consinit();
|
consinit();
|
||||||
|
|
||||||
/* Set the page size */
|
/* Set the page size */
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/* Initialize pmap module */
|
/* Initialize pmap module */
|
||||||
pmap_bootstrap(startkernel, endkernel);
|
pmap_bootstrap(startkernel, endkernel);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.10 2011/06/20 07:18:07 matt Exp $ */
|
/* $NetBSD: machdep.c,v 1.11 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||||
@ -30,7 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.10 2011/06/20 07:18:07 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.11 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_compat_netbsd.h"
|
#include "opt_compat_netbsd.h"
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -335,7 +335,7 @@ initppc(u_long startkernel, u_long endkernel, u_int args, void *btinfo)
|
|||||||
setled(0x40400000);
|
setled(0x40400000);
|
||||||
|
|
||||||
/* Initialize pmap module. */
|
/* Initialize pmap module. */
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
pmap_bootstrap(startkernel, endkernel);
|
pmap_bootstrap(startkernel, endkernel);
|
||||||
setled(0x40500000);
|
setled(0x40500000);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.65 2015/09/30 14:18:54 phx Exp $ */
|
/* $NetBSD: machdep.c,v 1.66 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||||
@ -32,7 +32,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.65 2015/09/30 14:18:54 phx Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.66 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_compat_netbsd.h"
|
#include "opt_compat_netbsd.h"
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -198,8 +198,7 @@ initppc(u_int startkernel, u_int endkernel, u_int args, void *btinfo)
|
|||||||
/* Initialize the console */
|
/* Initialize the console */
|
||||||
consinit();
|
consinit();
|
||||||
|
|
||||||
/* Set the page size */
|
uvm_md_init();
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/* Initialize pmap module */
|
/* Initialize pmap module */
|
||||||
pmap_bootstrap(startkernel, endkernel);
|
pmap_bootstrap(startkernel, endkernel);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.53 2014/03/24 19:13:48 christos Exp $ */
|
/* $NetBSD: machdep.c,v 1.54 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2000, 2001
|
* Copyright 2000, 2001
|
||||||
@ -58,7 +58,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.53 2014/03/24 19:13:48 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.54 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_execfmt.h"
|
#include "opt_execfmt.h"
|
||||||
@ -190,7 +190,7 @@ mach_init(long fwhandle, long magic, long bootdata, long reserved)
|
|||||||
|
|
||||||
consinit();
|
consinit();
|
||||||
|
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy exception-dispatch code down to exception vector.
|
* Copy exception-dispatch code down to exception vector.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.142 2016/11/03 22:08:31 kamil Exp $ */
|
/* $NetBSD: machdep.c,v 1.143 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Soren S. Jorvang
|
* Copyright (c) 2000 Soren S. Jorvang
|
||||||
@ -34,7 +34,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.142 2016/11/03 22:08:31 kamil Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.143 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -287,7 +287,7 @@ mach_init(int argc, int32_t argv32[], uintptr_t magic, int32_t bip32)
|
|||||||
|
|
||||||
cpu_setmodel("%s", arcbios_system_identifier);
|
cpu_setmodel("%s", arcbios_system_identifier);
|
||||||
|
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/* set up bootinfo structures */
|
/* set up bootinfo structures */
|
||||||
if (magic == BOOTINFO_MAGIC && bip != NULL) {
|
if (magic == BOOTINFO_MAGIC && bip != NULL) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: sh3_machdep.c,v 1.104 2016/11/02 00:11:59 pgoyette Exp $ */
|
/* $NetBSD: sh3_machdep.c,v 1.105 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996, 1997, 1998, 2002 The NetBSD Foundation, Inc.
|
* Copyright (c) 1996, 1997, 1998, 2002 The NetBSD Foundation, Inc.
|
||||||
@ -65,7 +65,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: sh3_machdep.c,v 1.104 2016/11/02 00:11:59 pgoyette Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: sh3_machdep.c,v 1.105 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -190,9 +190,7 @@ sh_cpu_init(int arch, int product)
|
|||||||
/* kernel stack setup */
|
/* kernel stack setup */
|
||||||
__sh_switch_resume = CPU_IS_SH3 ? sh3_switch_resume : sh4_switch_resume;
|
__sh_switch_resume = CPU_IS_SH3 ? sh3_switch_resume : sh4_switch_resume;
|
||||||
|
|
||||||
/* Set page size (4KB) */
|
uvm_md_init();
|
||||||
uvm_setpagesize();
|
|
||||||
|
|
||||||
/* setup UBC channel A for single-stepping */
|
/* setup UBC channel A for single-stepping */
|
||||||
#if defined(PTRACE_HOOKS) || defined(DDB)
|
#if defined(PTRACE_HOOKS) || defined(DDB)
|
||||||
_reg_write_2(SH_(BBRA), 0); /* disable channel A */
|
_reg_write_2(SH_(BBRA), 0); /* disable channel A */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ofw.c,v 1.65 2016/07/07 06:55:38 msaitoh Exp $ */
|
/* $NetBSD: ofw.c,v 1.66 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 1997
|
* Copyright 1997
|
||||||
@ -41,7 +41,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.65 2016/07/07 06:55:38 msaitoh Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.66 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -871,8 +871,7 @@ ofw_configmem(void)
|
|||||||
bootconfig.dramblocks = availcnt;
|
bootconfig.dramblocks = availcnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load memory into UVM. */
|
uvm_md_init();
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
|
||||||
|
|
||||||
/* XXX Please kill this code dead. */
|
/* XXX Please kill this code dead. */
|
||||||
for (i = 0; i < bootconfig.dramblocks; i++) {
|
for (i = 0; i < bootconfig.dramblocks; i++) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap.c,v 1.360 2015/12/11 19:47:52 macallan Exp $ */
|
/* $NetBSD: pmap.c,v 1.361 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996
|
* Copyright (c) 1996
|
||||||
@ -56,7 +56,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.360 2015/12/11 19:47:52 macallan Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.361 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -3035,7 +3035,7 @@ pmap_bootstrap(int nctx, int nregion, int nsegment)
|
|||||||
extern char *kernel_top;
|
extern char *kernel_top;
|
||||||
|
|
||||||
uvmexp.pagesize = NBPG;
|
uvmexp.pagesize = NBPG;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
#if defined(SUN4) && (defined(SUN4C) || defined(SUN4M) || defined(SUN4D))
|
#if defined(SUN4) && (defined(SUN4C) || defined(SUN4M) || defined(SUN4D))
|
||||||
/* In this case NPTESG is a variable */
|
/* In this case NPTESG is a variable */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap.c,v 1.304 2016/11/04 05:41:01 macallan Exp $ */
|
/* $NetBSD: pmap.c,v 1.305 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* Copyright (C) 1996-1999 Eduardo Horvath.
|
* Copyright (C) 1996-1999 Eduardo Horvath.
|
||||||
@ -26,7 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.304 2016/11/04 05:41:01 macallan Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.305 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
|
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
|
||||||
#define HWREF
|
#define HWREF
|
||||||
@ -778,7 +778,7 @@ pmap_bootstrap(u_long kernelstart, u_long kernelend)
|
|||||||
*/
|
*/
|
||||||
uvmexp.pagesize = NBPG;
|
uvmexp.pagesize = NBPG;
|
||||||
uvmexp.ncolors = pmap_calculate_colors();
|
uvmexp.ncolors = pmap_calculate_colors();
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get hold or the message buffer.
|
* Get hold or the message buffer.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap.c,v 1.47 2014/03/24 18:50:31 christos Exp $ */
|
/* $NetBSD: pmap.c,v 1.48 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||||
@ -82,7 +82,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.47 2014/03/24 18:50:31 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.48 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_pmap_debug.h"
|
#include "opt_pmap_debug.h"
|
||||||
@ -1700,7 +1700,7 @@ pmap_bootstrap(vaddr_t nextva)
|
|||||||
avail_next = avail_start;
|
avail_next = avail_start;
|
||||||
|
|
||||||
uvmexp.pagesize = NBPG;
|
uvmexp.pagesize = NBPG;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/* after setting up some structures */
|
/* after setting up some structures */
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap.c,v 1.170 2013/11/07 17:50:18 christos Exp $ */
|
/* $NetBSD: pmap.c,v 1.171 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||||
@ -80,7 +80,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.170 2013/11/07 17:50:18 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.171 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_pmap_debug.h"
|
#include "opt_pmap_debug.h"
|
||||||
@ -1730,7 +1730,7 @@ pmap_bootstrap(vaddr_t nextva)
|
|||||||
avail_next = avail_start;
|
avail_next = avail_start;
|
||||||
|
|
||||||
uvmexp.pagesize = PAGE_SIZE;
|
uvmexp.pagesize = PAGE_SIZE;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
/* after setting up some structures */
|
/* after setting up some structures */
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap.c,v 1.113 2013/09/06 17:43:19 tsutsui Exp $ */
|
/* $NetBSD: pmap.c,v 1.114 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||||
@ -105,7 +105,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.113 2013/09/06 17:43:19 tsutsui Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.114 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_pmap_debug.h"
|
#include "opt_pmap_debug.h"
|
||||||
@ -893,7 +893,7 @@ pmap_bootstrap(vaddr_t nextva)
|
|||||||
|
|
||||||
/* Notify the VM system of our page size. */
|
/* Notify the VM system of our page size. */
|
||||||
uvmexp.pagesize = PAGE_SIZE;
|
uvmexp.pagesize = PAGE_SIZE;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
pmap_page_upload();
|
pmap_page_upload();
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.53 2012/02/08 17:55:21 reinoud Exp $ */
|
/* $NetBSD: machdep.c,v 1.54 2016/12/22 14:47:59 cherry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2011 Reinoud Zandijk <reinoud@netbsd.org>
|
* Copyright (c) 2011 Reinoud Zandijk <reinoud@netbsd.org>
|
||||||
@ -37,7 +37,7 @@
|
|||||||
#include "opt_memsize.h"
|
#include "opt_memsize.h"
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.53 2012/02/08 17:55:21 reinoud Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.54 2016/12/22 14:47:59 cherry Exp $");
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -213,7 +213,7 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
boothowto = tmpopt;
|
boothowto = tmpopt;
|
||||||
|
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
uvmexp.ncolors = 2;
|
uvmexp.ncolors = 2;
|
||||||
|
|
||||||
pmap_bootstrap();
|
pmap_bootstrap();
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap.c,v 1.182 2012/02/02 18:59:44 para Exp $ */
|
/* $NetBSD: pmap.c,v 1.183 2016/12/22 14:48:00 cherry Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994, 1998, 1999, 2003 Ludd, University of Lule}, Sweden.
|
* Copyright (c) 1994, 1998, 1999, 2003 Ludd, University of Lule}, Sweden.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -30,7 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.182 2012/02/02 18:59:44 para Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.183 2016/12/22 14:48:00 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_cputype.h"
|
#include "opt_cputype.h"
|
||||||
@ -302,7 +302,7 @@ pmap_bootstrap(void)
|
|||||||
|
|
||||||
/* Set logical page size */
|
/* Set logical page size */
|
||||||
uvmexp.pagesize = NBPG;
|
uvmexp.pagesize = NBPG;
|
||||||
uvm_setpagesize();
|
uvm_md_init();
|
||||||
|
|
||||||
physmem = btoc(avail_end);
|
physmem = btoc(avail_end);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.37 2016/07/07 06:55:40 msaitoh Exp $ */
|
/* $NetBSD: machdep.c,v 1.38 2016/12/22 14:48:00 cherry Exp $ */
|
||||||
/* $OpenBSD: zaurus_machdep.c,v 1.25 2006/06/20 18:24:04 todd Exp $ */
|
/* $OpenBSD: zaurus_machdep.c,v 1.25 2006/06/20 18:24:04 todd Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -107,7 +107,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.37 2016/07/07 06:55:40 msaitoh Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38 2016/12/22 14:48:00 cherry Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
@ -1090,7 +1090,7 @@ initarm(void *arg)
|
|||||||
#ifdef VERBOSE_INIT_ARM
|
#ifdef VERBOSE_INIT_ARM
|
||||||
printf("page ");
|
printf("page ");
|
||||||
#endif
|
#endif
|
||||||
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
|
uvm_md_init();
|
||||||
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
|
||||||
atop(physical_freestart), atop(physical_freeend),
|
atop(physical_freestart), atop(physical_freeend),
|
||||||
VM_FREELIST_DEFAULT);
|
VM_FREELIST_DEFAULT);
|
||||||
|
Loading…
Reference in New Issue
Block a user