Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Move the uvm_setpagesize() call to platform-depende...



details:   https://anonhg.NetBSD.org/src/rev/37994ace9212
branches:  trunk
changeset: 534606:37994ace9212
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jul 30 16:16:38 2002 +0000

description:
Move the uvm_setpagesize() call to platform-dependent code in preparation
for other changes to pmap_bootstrap().

diffstat:

 sys/arch/acorn32/acorn32/rpc_machdep.c           |  5 +++--
 sys/arch/arm/arm32/pmap.c                        |  9 ++-------
 sys/arch/cats/cats/cats_machdep.c                |  3 ++-
 sys/arch/evbarm/integrator/integrator_machdep.c  |  3 ++-
 sys/arch/evbarm/iq80310/iq80310_machdep.c        |  3 ++-
 sys/arch/evbarm/iq80321/iq80321_machdep.c        |  3 ++-
 sys/arch/evbarm/ixm1200/ixm1200_machdep.c        |  3 ++-
 sys/arch/hpcarm/hpcarm/hpc_machdep.c             |  3 ++-
 sys/arch/netwinder/netwinder/netwinder_machdep.c |  3 ++-
 sys/arch/shark/ofw/ofw.c                         |  3 ++-
 10 files changed, 21 insertions(+), 17 deletions(-)

diffs (192 lines):

diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/acorn32/acorn32/rpc_machdep.c
--- a/sys/arch/acorn32/acorn32/rpc_machdep.c    Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/acorn32/acorn32/rpc_machdep.c    Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpc_machdep.c,v 1.36 2002/05/03 16:45:21 rjs Exp $     */
+/*     $NetBSD: rpc_machdep.c,v 1.37 2002/07/30 16:16:38 thorpej Exp $ */
 
 /*
  * Copyright (c) 2000-2001 Reinoud Zandijk.
@@ -55,7 +55,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: rpc_machdep.c,v 1.36 2002/05/03 16:45:21 rjs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpc_machdep.c,v 1.37 2002/07/30 16:16:38 thorpej Exp $");
 
 #include <sys/systm.h>
 #include <sys/kernel.h>
@@ -940,6 +940,7 @@
 #ifdef VERBOSE_INIT_ARM
        printf("pmap ");
 #endif
+       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
        pmap_bootstrap((pd_entry_t *)kernel_l1pt.pv_va, kernel_ptpt);
        console_flush();
 
diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/arm/arm32/pmap.c Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.100 2002/07/30 16:07:23 thorpej Exp $       */
+/*     $NetBSD: pmap.c,v 1.101 2002/07/30 16:16:39 thorpej Exp $       */
 
 /*
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -143,7 +143,7 @@
 #include <machine/param.h>
 #include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.100 2002/07/30 16:07:23 thorpej Exp $");        
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.101 2002/07/30 16:16:39 thorpej Exp $");        
 #ifdef PMAP_DEBUG
 #define        PDEBUG(_lev_,_stat_) \
        if (pmap_debug_level >= (_lev_)) \
@@ -998,11 +998,6 @@
        pmap_kernel()->pm_obj.uo_npages = 0;
        pmap_kernel()->pm_obj.uo_refs = 1;
 
-       /*
-        * Initialize PAGE_SIZE-dependent variables.
-        */
-       uvm_setpagesize();
-
        loop = 0;
        while (loop < bootconfig.dramblocks) {
                start = (paddr_t)bootconfig.dram[loop].address;
diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/cats/cats/cats_machdep.c
--- a/sys/arch/cats/cats/cats_machdep.c Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/cats/cats/cats_machdep.c Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cats_machdep.c,v 1.29 2002/04/05 16:58:07 thorpej Exp $        */
+/*     $NetBSD: cats_machdep.c,v 1.30 2002/07/30 16:16:41 thorpej Exp $        */
 
 /*
  * Copyright (c) 1997,1998 Mark Brinicombe.
@@ -740,6 +740,7 @@
 
        /* Boot strap pmap telling it where the kernel page table is */
        printf("pmap ");
+       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
        pmap_bootstrap((pd_entry_t *)kernel_l1pt.pv_va, kernel_ptpt);
 
        /* Setup the IRQ system */
diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/evbarm/integrator/integrator_machdep.c
--- a/sys/arch/evbarm/integrator/integrator_machdep.c   Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/evbarm/integrator/integrator_machdep.c   Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: integrator_machdep.c,v 1.23 2002/07/08 16:20:07 rearnsha Exp $ */
+/*     $NetBSD: integrator_machdep.c,v 1.24 2002/07/30 16:16:41 thorpej Exp $  */
 
 /*
  * Copyright (c) 2001,2002 ARM Ltd
@@ -791,6 +791,7 @@
 
        /* Boot strap pmap telling it where the kernel page table is */
        printf("pmap ");
+       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
        pmap_bootstrap((pd_entry_t *)kernel_l1pt.pv_va, kernel_ptpt);
 
        /* Setup the IRQ system */
diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/evbarm/iq80310/iq80310_machdep.c
--- a/sys/arch/evbarm/iq80310/iq80310_machdep.c Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_machdep.c Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iq80310_machdep.c,v 1.40 2002/04/12 20:50:26 thorpej Exp $     */
+/*     $NetBSD: iq80310_machdep.c,v 1.41 2002/07/30 16:16:42 thorpej Exp $     */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -776,6 +776,7 @@
 
        /* Boot strap pmap telling it where the kernel page table is */
        printf("pmap ");
+       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
        pmap_bootstrap((pd_entry_t *)kernel_l1pt.pv_va, kernel_ptpt);
 
        /* Setup the IRQ system */
diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/evbarm/iq80321/iq80321_machdep.c
--- a/sys/arch/evbarm/iq80321/iq80321_machdep.c Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/evbarm/iq80321/iq80321_machdep.c Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iq80321_machdep.c,v 1.6 2002/04/12 20:50:27 thorpej Exp $      */
+/*     $NetBSD: iq80321_machdep.c,v 1.7 2002/07/30 16:16:43 thorpej Exp $      */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -763,6 +763,7 @@
 
        /* Boot strap pmap telling it where the kernel page table is */
        printf("pmap ");
+       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
        pmap_bootstrap((pd_entry_t *)kernel_l1pt.pv_va, kernel_ptpt);
 
        /* Setup the IRQ system */
diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/evbarm/ixm1200/ixm1200_machdep.c
--- a/sys/arch/evbarm/ixm1200/ixm1200_machdep.c Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/evbarm/ixm1200/ixm1200_machdep.c Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ixm1200_machdep.c,v 1.2 2002/07/21 14:26:05 ichiro Exp $ */
+/*     $NetBSD: ixm1200_machdep.c,v 1.3 2002/07/30 16:16:43 thorpej Exp $ */
 #undef DEBUG_BEFOREMMU
 /*
  * Copyright (c) 2002
@@ -697,6 +697,7 @@
 
        /* Boot strap pmap telling it where the kernel page table is */
        printf("pmap ");
+       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
        pmap_bootstrap((pd_entry_t *)kernel_l1pt.pv_va, kernel_ptpt);
 
        /* Setup the IRQ system */
diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/hpcarm/hpcarm/hpc_machdep.c
--- a/sys/arch/hpcarm/hpcarm/hpc_machdep.c      Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/hpcarm/hpcarm/hpc_machdep.c      Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpc_machdep.c,v 1.49 2002/07/19 19:15:50 ichiro Exp $  */
+/*     $NetBSD: hpc_machdep.c,v 1.50 2002/07/30 16:16:43 thorpej Exp $ */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -686,6 +686,7 @@
 #endif
 
        /* Boot strap pmap telling it where the kernel page table is */
+       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
        pmap_bootstrap((pd_entry_t *)kernel_l1pt.pv_va, kernel_ptpt);
 
 
diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/netwinder/netwinder/netwinder_machdep.c
--- a/sys/arch/netwinder/netwinder/netwinder_machdep.c  Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/netwinder/netwinder/netwinder_machdep.c  Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netwinder_machdep.c,v 1.31 2002/04/12 19:12:32 thorpej Exp $   */
+/*     $NetBSD: netwinder_machdep.c,v 1.32 2002/07/30 16:16:44 thorpej Exp $   */
 
 /*
  * Copyright (c) 1997,1998 Mark Brinicombe.
@@ -720,6 +720,7 @@
 
        /* Boot strap pmap telling it where the kernel page table is */
        printf("pmap ");
+       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
        pmap_bootstrap((pd_entry_t *)kernel_l1pt.pv_va, kernel_ptpt);
 
        /* Setup the IRQ system */
diff -r fa3b7f8301eb -r 37994ace9212 sys/arch/shark/ofw/ofw.c
--- a/sys/arch/shark/ofw/ofw.c  Tue Jul 30 16:07:23 2002 +0000
+++ b/sys/arch/shark/ofw/ofw.c  Tue Jul 30 16:16:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofw.c,v 1.14 2002/06/02 14:44:46 drochner Exp $        */
+/*     $NetBSD: ofw.c,v 1.15 2002/07/30 16:16:45 thorpej Exp $ */
 
 /*
  * Copyright 1997
@@ -867,6 +867,7 @@
        }
 
        /* Initialize pmap module. */
+       uvm_setpagesize();      /* initialize PAGE_SIZE-dependent variables */
        pmap_bootstrap((pd_entry_t *)proc0_ttbbase.pv_va, proc0_ptpt);
 }
 



Home | Main Index | Thread Index | Old Index