Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch switch all ports to use uvm_init.c:uvm_md_init()



details:   https://anonhg.NetBSD.org/src/rev/f955a03166da
branches:  trunk
changeset: 819907:f955a03166da
user:      cherry <cherry%NetBSD.org@localhost>
date:      Thu Dec 22 14:47:53 2016 +0000

description:
switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.

diffstat:

 sys/arch/acorn26/acorn26/start.c                 |  6 +++---
 sys/arch/acorn32/acorn32/rpc_machdep.c           |  7 ++++---
 sys/arch/acorn32/eb7500atx/eb7500atx_machdep.c   |  7 ++++---
 sys/arch/algor/algor/machdep.c                   |  6 +++---
 sys/arch/alpha/alpha/machdep.c                   |  6 +++---
 sys/arch/amd64/amd64/machdep.c                   |  6 +++---
 sys/arch/amiga/amiga/pmap_bootstrap.c            |  6 +++---
 sys/arch/amigappc/amigappc/machdep.c             |  9 +++------
 sys/arch/arc/arc/machdep.c                       |  9 +++------
 sys/arch/arm/arm32/arm32_boot.c                  |  6 +++---
 sys/arch/arm/at91/at91bus.c                      |  6 +++---
 sys/arch/atari/atari/pmap_bootstrap.c            |  4 ++--
 sys/arch/cobalt/cobalt/machdep.c                 |  6 +++---
 sys/arch/emips/emips/machdep.c                   |  9 +++------
 sys/arch/epoc32/epoc32/machdep.c                 |  6 +++---
 sys/arch/evbarm/adi_brh/brh_machdep.c            |  6 +++---
 sys/arch/evbarm/armadillo/armadillo9_machdep.c   |  6 +++---
 sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c        |  4 ++--
 sys/arch/evbarm/gemini/gemini_machdep.c          |  6 +++---
 sys/arch/evbarm/hdl_g/hdlg_machdep.c             |  6 +++---
 sys/arch/evbarm/imx31/imx31lk_machdep.c          |  6 +++---
 sys/arch/evbarm/iq80310/iq80310_machdep.c        |  6 +++---
 sys/arch/evbarm/iq80321/iq80321_machdep.c        |  6 +++---
 sys/arch/evbarm/ixdp425/ixdp425_machdep.c        |  6 +++---
 sys/arch/evbarm/ixm1200/ixm1200_machdep.c        |  6 +++---
 sys/arch/evbarm/lubbock/lubbock_machdep.c        |  6 +++---
 sys/arch/evbarm/mini2440/mini2440_machdep.c      |  4 ++--
 sys/arch/evbarm/npwr_fc/npwr_fc_machdep.c        |  6 +++---
 sys/arch/evbarm/nslu2/nslu2_machdep.c            |  6 +++---
 sys/arch/evbarm/osk5912/osk5912_machdep.c        |  6 +++---
 sys/arch/evbarm/smdk2xx0/smdk2410_machdep.c      |  6 +++---
 sys/arch/evbarm/smdk2xx0/smdk2800_machdep.c      |  6 +++---
 sys/arch/evbarm/tisdp24xx/sdp24xx_machdep.c      |  6 +++---
 sys/arch/evbarm/tsarm/tsarm_machdep.c            |  6 +++---
 sys/arch/evbarm/viper/viper_machdep.c            |  6 +++---
 sys/arch/evbmips/adm5120/machdep.c               |  9 +++------
 sys/arch/evbmips/alchemy/machdep.c               |  9 +++------
 sys/arch/evbmips/atheros/machdep.c               |  9 +++------
 sys/arch/evbmips/cavium/machdep.c                |  7 +++----
 sys/arch/evbmips/gdium/machdep.c                 |  7 +++----
 sys/arch/evbmips/ingenic/machdep.c               |  6 +++---
 sys/arch/evbmips/loongson/machdep.c              |  9 ++++-----
 sys/arch/evbmips/malta/machdep.c                 |  7 +++----
 sys/arch/evbmips/rasoc/machdep.c                 |  9 +++------
 sys/arch/evbmips/rmixl/machdep.c                 |  7 +++----
 sys/arch/evbppc/ev64260/machdep.c                |  9 +++------
 sys/arch/evbppc/mpc85xx/machdep.c                |  7 ++-----
 sys/arch/evbppc/pmppc/machdep.c                  |  9 +++------
 sys/arch/ews4800mips/ews4800mips/machdep.c       |  6 +++---
 sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c      |  6 +++---
 sys/arch/hpcarm/hpcarm/sa11x0_hpc_machdep.c      |  6 +++---
 sys/arch/hpcmips/hpcmips/machdep.c               |  6 +++---
 sys/arch/hppa/hppa/pmap.c                        |  6 +++---
 sys/arch/i386/i386/machdep.c                     |  9 +++------
 sys/arch/ia64/ia64/machdep.c                     |  4 ++--
 sys/arch/iyonix/iyonix/iyonix_machdep.c          |  6 +++---
 sys/arch/m68k/m68k/pmap_motorola.c               |  6 +++---
 sys/arch/mipsco/mipsco/machdep.c                 |  9 +++------
 sys/arch/netwinder/netwinder/netwinder_machdep.c |  6 +++---
 sys/arch/newsmips/newsmips/machdep.c             |  9 +++------
 sys/arch/playstation2/playstation2/machdep.c     |  7 ++++---
 sys/arch/pmax/pmax/machdep.c                     |  9 +++------
 sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c         |  6 +++---
 sys/arch/powerpc/ibm4xx/pmap.c                   |  6 +++---
 sys/arch/powerpc/oea/ofwoea_machdep.c            |  6 +++---
 sys/arch/powerpc/oea/prep_machdep.c              |  6 +++---
 sys/arch/rs6000/rs6000/machdep.c                 |  6 +++---
 sys/arch/sandpoint/sandpoint/machdep.c           |  7 +++----
 sys/arch/sbmips/sbmips/machdep.c                 |  6 +++---
 sys/arch/sgimips/sgimips/machdep.c               |  6 +++---
 sys/arch/sh3/sh3/sh3_machdep.c                   |  8 +++-----
 sys/arch/shark/ofw/ofw.c                         |  7 +++----
 sys/arch/sparc/sparc/pmap.c                      |  6 +++---
 sys/arch/sparc64/sparc64/pmap.c                  |  6 +++---
 sys/arch/sun2/sun2/pmap.c                        |  6 +++---
 sys/arch/sun3/sun3/pmap.c                        |  6 +++---
 sys/arch/sun3/sun3x/pmap.c                       |  6 +++---
 sys/arch/usermode/usermode/machdep.c             |  6 +++---
 sys/arch/vax/vax/pmap.c                          |  6 +++---
 sys/arch/zaurus/zaurus/machdep.c                 |  6 +++---
 80 files changed, 239 insertions(+), 287 deletions(-)

diffs (truncated from 2174 to 300 lines):

diff -r fefb486c1168 -r f955a03166da sys/arch/acorn26/acorn26/start.c
--- a/sys/arch/acorn26/acorn26/start.c  Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/acorn26/acorn26/start.c  Thu Dec 22 14:47:53 2016 +0000
@@ -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
  * All rights reserved.
@@ -31,7 +31,7 @@
 
 #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"
 
@@ -125,7 +125,7 @@
        boothowto = bootconfig.boothowto; 
        physmem = bootconfig.npages;
        uvmexp.pagesize = bootconfig.nbpp;
-       uvm_setpagesize();
+       uvm_md_init();
        
        /* Any others? */
 
diff -r fefb486c1168 -r f955a03166da sys/arch/acorn32/acorn32/rpc_machdep.c
--- a/sys/arch/acorn32/acorn32/rpc_machdep.c    Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/acorn32/acorn32/rpc_machdep.c    Thu Dec 22 14:47:53 2016 +0000
@@ -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.
@@ -55,7 +55,7 @@
 
 #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/kernel.h>
@@ -924,7 +924,8 @@
 #ifdef VERBOSE_INIT_ARM
        printf("page ");
 #endif
-       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
+       uvm_md_init();
+
        for (loop = 0; loop < bootconfig.dramblocks; loop++) {
                paddr_t start = (paddr_t)bootconfig.dram[loop].address;
                paddr_t end = start + (bootconfig.dram[loop].pages * PAGE_SIZE);
diff -r fefb486c1168 -r f955a03166da sys/arch/acorn32/eb7500atx/eb7500atx_machdep.c
--- a/sys/arch/acorn32/eb7500atx/eb7500atx_machdep.c    Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/acorn32/eb7500atx/eb7500atx_machdep.c    Thu Dec 22 14:47:53 2016 +0000
@@ -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.
@@ -55,7 +55,7 @@
 
 #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/kernel.h>
@@ -862,7 +862,8 @@
 #ifdef VERBOSE_INIT_ARM
        printf("page ");
 #endif
-       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
+       uvm_md_init();
+
        for (loop = 0; loop < bootconfig.dramblocks; loop++) {
                paddr_t start = (paddr_t)bootconfig.dram[loop].address;
                paddr_t end = start + (bootconfig.dram[loop].pages * PAGE_SIZE);
diff -r fefb486c1168 -r f955a03166da sys/arch/algor/algor/machdep.c
--- a/sys/arch/algor/algor/machdep.c    Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/algor/algor/machdep.c    Thu Dec 22 14:47:53 2016 +0000
@@ -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.
@@ -68,7 +68,7 @@
  */
 
 #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_p5064.h" 
@@ -198,7 +198,7 @@
         * Initialize PAGE_SIZE-dependent variables.
         */
        led_display('p', 'g', 's', 'z');
-       uvm_setpagesize();
+       uvm_md_init();
 
        /*
         * Initialize bus space tags and bring up the console.
diff -r fefb486c1168 -r f955a03166da sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Thu Dec 22 14:47:53 2016 +0000
@@ -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.
@@ -68,7 +68,7 @@
 
 #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/systm.h>
@@ -372,7 +372,7 @@
                panic("page size %lu != %d?!", hwrpb->rpb_page_size,
                    ALPHA_PGBYTES);
        uvmexp.pagesize = hwrpb->rpb_page_size;
-       uvm_setpagesize();
+       uvm_md_init();
 
        /*
         * Find out what hardware we're on, and do basic initialization.
diff -r fefb486c1168 -r f955a03166da sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Thu Dec 22 14:47:53 2016 +0000
@@ -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
@@ -111,7 +111,7 @@
  */
 
 #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  */
 
@@ -1581,7 +1581,7 @@
        /*
         * Initialize PAGE_SIZE-dependent variables.
         */
-       uvm_setpagesize();
+       uvm_md_init();
 
        uvmexp.ncolors = 2;
 
diff -r fefb486c1168 -r f955a03166da sys/arch/amiga/amiga/pmap_bootstrap.c
--- a/sys/arch/amiga/amiga/pmap_bootstrap.c     Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/amiga/amiga/pmap_bootstrap.c     Thu Dec 22 14:47:53 2016 +0000
@@ -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.
@@ -65,7 +65,7 @@
  */
 
 #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/systm.h>
@@ -125,7 +125,7 @@
         */
 
        uvmexp.pagesize = NBPG;
-       uvm_setpagesize();
+       uvm_md_init();
 
        /*
         * May want to check if first segment is Zorro-II?
diff -r fefb486c1168 -r f955a03166da sys/arch/amigappc/amigappc/machdep.c
--- a/sys/arch/amigappc/amigappc/machdep.c      Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/amigappc/amigappc/machdep.c      Thu Dec 22 14:47:53 2016 +0000
@@ -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.
@@ -32,7 +32,7 @@
  */
 
 #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/device.h>
@@ -560,10 +560,7 @@
 
        /* XXX bus_space_init() not needed here */
 
-       /*
-        * Set the page size
-        */
-       uvm_setpagesize();
+       uvm_md_init();
 
        /*
         * Initialize pmap module
diff -r fefb486c1168 -r f955a03166da sys/arch/arc/arc/machdep.c
--- a/sys/arch/arc/arc/machdep.c        Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/arc/arc/machdep.c        Thu Dec 22 14:47:53 2016 +0000
@@ -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 $   */
 
 /*
@@ -39,7 +39,7 @@
  */
 
 #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_ddbparam.h"
@@ -306,10 +306,7 @@
                }
        }
 
-       /*
-        * Set the VM page size.
-        */
-       uvm_setpagesize();
+       uvm_md_init();
 
        /* make sure that we don't call BIOS console from now on */
        cn_tab = NULL;
diff -r fefb486c1168 -r f955a03166da sys/arch/arm/arm32/arm32_boot.c
--- a/sys/arch/arm/arm32/arm32_boot.c   Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/arm/arm32/arm32_boot.c   Thu Dec 22 14:47:53 2016 +0000
@@ -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.
@@ -123,7 +123,7 @@
 
 #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_kgdb.h"
@@ -231,7 +231,7 @@
 #ifdef VERBOSE_INIT_ARM
        printf("page ");
 #endif
-       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
+       uvm_md_init();
 
 #ifdef VERBOSE_INIT_ARM
        printf("pmap_physload ");
diff -r fefb486c1168 -r f955a03166da sys/arch/arm/at91/at91bus.c
--- a/sys/arch/arm/at91/at91bus.c       Thu Dec 22 14:11:58 2016 +0000
+++ b/sys/arch/arm/at91/at91bus.c       Thu Dec 22 14:47:53 2016 +0000
@@ -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
@@ -27,7 +27,7 @@
  */
 
 #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_kgdb.h"
@@ -511,7 +511,7 @@
 #ifdef VERBOSE_INIT_ARM
        printf("page ");
 #endif



Home | Main Index | Thread Index | Old Index