Source-Changes-HG archive

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

[src/trunk]: src/sys move the call to link_pool_init() to the end of uvm_init...



details:   https://anonhg.NetBSD.org/src/rev/6484fa5075f7
branches:  trunk
changeset: 573245:6484fa5075f7
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jan 23 19:02:02 2005 +0000

description:
move the call to link_pool_init() to the end of uvm_init().  needed for sun3.

diffstat:

 sys/kern/init_main.c |  7 ++-----
 sys/uvm/uvm_init.c   |  9 +++++----
 2 files changed, 7 insertions(+), 9 deletions(-)

diffs (58 lines):

diff -r dfcbed6d01c1 -r 6484fa5075f7 sys/kern/init_main.c
--- a/sys/kern/init_main.c      Sun Jan 23 18:46:24 2005 +0000
+++ b/sys/kern/init_main.c      Sun Jan 23 19:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.243 2005/01/09 03:11:48 mycroft Exp $  */
+/*     $NetBSD: init_main.c,v 1.244 2005/01/23 19:02:02 chs Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.243 2005/01/09 03:11:48 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.244 2005/01/23 19:02:02 chs Exp $");
 
 #include "fs_nfs.h"
 #include "opt_nfsserver.h"
@@ -251,9 +251,6 @@
        /* Do machine-dependent initialization. */
        cpu_startup();
 
-       /* Initialise pools. */
-       link_pool_init();
-
        /* Initialize callouts. */
        callout_startup();
 
diff -r dfcbed6d01c1 -r 6484fa5075f7 sys/uvm/uvm_init.c
--- a/sys/uvm/uvm_init.c        Sun Jan 23 18:46:24 2005 +0000
+++ b/sys/uvm/uvm_init.c        Sun Jan 23 19:02:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_init.c,v 1.20 2004/04/25 16:42:45 simonb Exp $     */
+/*     $NetBSD: uvm_init.c,v 1.21 2005/01/23 19:02:02 chs Exp $        */
 
 /*
  *
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.20 2004/04/25 16:42:45 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_init.c,v 1.21 2005/01/23 19:02:02 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -158,8 +158,9 @@
            UAO_FLAG_KERNSWAP);
 
        /*
-        * done!
+        * Initialize pools.  This must be done before anyone manipulates
+        * any vm_maps because we use a pool for some map entry structures.
         */
 
-       return;
+       link_pool_init();
 }



Home | Main Index | Thread Index | Old Index