Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Do the first allocsys() pass (the pass that compute...



details:   https://anonhg.NetBSD.org/src/rev/de5bf5554d8b
branches:  trunk
changeset: 509011:de5bf5554d8b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Apr 24 15:41:38 2001 +0000

description:
Do the first allocsys() pass (the pass that computes sizes) before
calling pmap_bootstrap(); pmap_bootstrap() needs some of the size
information computed by allocsys().

diffstat:

 sys/arch/arc/arc/machdep.c           |   9 +++++++--
 sys/arch/cobalt/cobalt/machdep.c     |   9 +++++++--
 sys/arch/hpcmips/hpcmips/machdep.c   |  11 ++++++++---
 sys/arch/mipsco/mipsco/machdep.c     |  11 ++++++++---
 sys/arch/newsmips/newsmips/machdep.c |  11 ++++++++---
 sys/arch/pmax/pmax/machdep.c         |  11 ++++++++---
 sys/arch/sgimips/sgimips/machdep.c   |   9 +++++++--
 7 files changed, 53 insertions(+), 18 deletions(-)

diffs (246 lines):

diff -r 91672255cecb -r de5bf5554d8b sys/arch/arc/arc/machdep.c
--- a/sys/arch/arc/arc/machdep.c        Tue Apr 24 15:04:27 2001 +0000
+++ b/sys/arch/arc/arc/machdep.c        Tue Apr 24 15:41:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.56 2001/04/24 04:30:53 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.57 2001/04/24 15:41:38 thorpej Exp $     */
 /*     $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $   */
 
 /*
@@ -733,6 +733,12 @@
        mips_init_msgbuf();
 
        /*
+        * Compute the size of system data structures.  pmap_bootstrap()
+        * needs some of this information.
+        */
+       size = (vsize_t)allocsys(NULL, NULL);
+
+       /*
         * Initialize the virtual memory system.
         */
        pmap_bootstrap();
@@ -752,7 +758,6 @@
         * memory is directly addressable.  We don't have to map these into
         * virtual address space.
         */
-       size = (vsize_t)allocsys(NULL, NULL);
        v = (caddr_t)uvm_pageboot_alloc(size); 
        if ((allocsys(v, NULL) - v) != size)
                panic("mach_init: table size inconsistency");
diff -r 91672255cecb -r de5bf5554d8b sys/arch/cobalt/cobalt/machdep.c
--- a/sys/arch/cobalt/cobalt/machdep.c  Tue Apr 24 15:04:27 2001 +0000
+++ b/sys/arch/cobalt/cobalt/machdep.c  Tue Apr 24 15:41:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.30 2001/04/24 04:30:56 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.31 2001/04/24 15:41:39 thorpej Exp $     */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang.  All rights reserved.
@@ -202,6 +202,12 @@
         */
        mips_init_msgbuf();
 
+       /*
+        * Compute the size of system data structures.  pmap_bootstrap()
+        * needs some of this information.
+        */
+       size = (vsize_t)allocsys(NULL, NULL);
+
        pmap_bootstrap();
 
        /*
@@ -219,7 +225,6 @@
         * memory is directly addressable.  We don't have to map these into
         * virtual address space.
         */
-       size = (vsize_t)allocsys(NULL, NULL);
        v = (caddr_t)uvm_pageboot_alloc(size); 
        if ((allocsys(v, NULL) - v) != size)
                panic("mach_init: table size inconsistency");
diff -r 91672255cecb -r de5bf5554d8b sys/arch/hpcmips/hpcmips/machdep.c
--- a/sys/arch/hpcmips/hpcmips/machdep.c        Tue Apr 24 15:04:27 2001 +0000
+++ b/sys/arch/hpcmips/hpcmips/machdep.c        Tue Apr 24 15:41:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.52 2001/04/24 04:30:58 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.53 2001/04/24 15:41:39 thorpej Exp $     */
 
 /*-
  * Copyright (c) 1999 Shin Takemura, All rights reserved.
@@ -72,7 +72,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.52 2001/04/24 04:30:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.53 2001/04/24 15:41:39 thorpej Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 #include "opt_vr41xx.h"
@@ -495,6 +495,12 @@
        mips_init_msgbuf();
 
        /*
+        * Compute the size of system data structures.  pmap_bootstrap()
+        * needs some of this information.
+        */
+       size = (unsigned)allocsys(NULL, NULL);
+
+       /*
         * Initialize the virtual memory system.
         */
        pmap_bootstrap();
@@ -505,7 +511,6 @@
         * memory is directly addressable.  We don't have to map these into
         * virtual address space.
         */
-       size = (unsigned)allocsys(NULL, NULL);
        v = (caddr_t)uvm_pageboot_alloc(size);
        if ((allocsys(v, NULL) - v) != size)
                panic("mach_init: table size inconsistency");
diff -r 91672255cecb -r de5bf5554d8b sys/arch/mipsco/mipsco/machdep.c
--- a/sys/arch/mipsco/mipsco/machdep.c  Tue Apr 24 15:04:27 2001 +0000
+++ b/sys/arch/mipsco/mipsco/machdep.c  Tue Apr 24 15:41:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.23 2001/04/24 04:31:03 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.24 2001/04/24 15:41:40 thorpej Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2001/04/24 04:31:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2001/04/24 15:41:40 thorpej Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -347,6 +347,12 @@
        pmap_bootstrap();
 
        /*
+        * Compute the size of system data structures.  pmap_bootstrap()
+        * needs some of this information.
+        */
+       size = (vsize_t)allocsys(NULL, NULL);
+
+       /*
         * Allocate space for proc0's USPACE.
         */
        v = (caddr_t)uvm_pageboot_alloc(USPACE); 
@@ -361,7 +367,6 @@
         * memory is directly addressable.  We don't have to map these into
         * virtual address space.
         */
-       size = (vsize_t)allocsys(NULL, NULL);
        v = (caddr_t)uvm_pageboot_alloc(size); 
        if ((allocsys(v, NULL) - v) != size)
                panic("mach_init: table size inconsistency");
diff -r 91672255cecb -r de5bf5554d8b sys/arch/newsmips/newsmips/machdep.c
--- a/sys/arch/newsmips/newsmips/machdep.c      Tue Apr 24 15:04:27 2001 +0000
+++ b/sys/arch/newsmips/newsmips/machdep.c      Tue Apr 24 15:41:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.56 2001/04/24 04:31:05 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.57 2001/04/24 15:41:40 thorpej Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.56 2001/04/24 04:31:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.57 2001/04/24 15:41:40 thorpej Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -319,6 +319,12 @@
        mips_init_msgbuf();
 
        /*
+        * Compute the size of system data structures.  pmap_bootstrap()
+        * needs some of this information.
+        */
+       size = (vsize_t)allocsys(NULL, NULL);
+
+       /*
         * Initialize the virtual memory system.
         */
        pmap_bootstrap();
@@ -338,7 +344,6 @@
         * memory is directly addressable.  We don't have to map these into
         * virtual address space.
         */
-       size = (vsize_t)allocsys(NULL, NULL);
        v = (caddr_t)uvm_pageboot_alloc(size); 
        if ((allocsys(v, NULL) - v) != size)
                panic("mach_init: table size inconsistency");
diff -r 91672255cecb -r de5bf5554d8b sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c      Tue Apr 24 15:04:27 2001 +0000
+++ b/sys/arch/pmax/pmax/machdep.c      Tue Apr 24 15:41:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.190 2001/04/24 04:31:07 thorpej Exp $    */
+/*     $NetBSD: machdep.c,v 1.191 2001/04/24 15:41:40 thorpej Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.190 2001/04/24 04:31:07 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.191 2001/04/24 15:41:40 thorpej Exp $");
 
 #include "fs_mfs.h"
 #include "opt_ddb.h"
@@ -365,6 +365,12 @@
        mips_init_msgbuf();
 
        /*
+        * Compute the size of system data structures.  pmap_bootstrap()
+        * needs some of this information.
+        */
+       size = (unsigned)allocsys(NULL, NULL);
+
+       /*
         * Initialize the virtual memory system.
         */
        pmap_bootstrap();
@@ -375,7 +381,6 @@
         * is directly addressable.  We don't have to map these into virtual
         * address space.
         */
-       size = (unsigned)allocsys(NULL, NULL);
        v = (caddr_t)uvm_pageboot_alloc(size);
        if ((allocsys(v, NULL) - v) != size)
                panic("mach_init: table size inconsistency");
diff -r 91672255cecb -r de5bf5554d8b sys/arch/sgimips/sgimips/machdep.c
--- a/sys/arch/sgimips/sgimips/machdep.c        Tue Apr 24 15:04:27 2001 +0000
+++ b/sys/arch/sgimips/sgimips/machdep.c        Tue Apr 24 15:41:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.13 2001/04/24 04:31:09 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.14 2001/04/24 15:41:41 thorpej Exp $     */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -263,6 +263,12 @@
         */
        mips_init_msgbuf();
 
+       /*
+        * Compute the size of system data structures.  pmap_bootstrap()
+        * needs some of this information.
+        */
+       size = (vsize_t)allocsys(NULL, NULL);
+
        pmap_bootstrap();
 
        /*
@@ -280,7 +286,6 @@
         * memory is directly addressable.  We don't have to map these into
         * virtual address space.
         */
-       size = (vsize_t)allocsys(NULL, NULL);
        v = (caddr_t)uvm_pageboot_alloc(size); 
        if ((allocsys(v, NULL) - v) != size)
                panic("mach_init: table size inconsistency");



Home | Main Index | Thread Index | Old Index