Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Call cpu_startup() immediately after uvm_init(), bu...



details:   https://anonhg.NetBSD.org/src/rev/843e0b27fba0
branches:  trunk
changeset: 467966:843e0b27fba0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Apr 01 00:22:45 1999 +0000

description:
Call cpu_startup() immediately after uvm_init(), but before mbinit().
Call configure() directly immediately after config_init().

This causes autoconfiguration to happen at the same time as before, but
creates some kernel submaps earlier, so that e.g. mbinit() can now
allocate memory.

diffstat:

 sys/kern/init_main.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r d8e12a50d288 -r 843e0b27fba0 sys/kern/init_main.c
--- a/sys/kern/init_main.c      Thu Apr 01 00:17:45 1999 +0000
+++ b/sys/kern/init_main.c      Thu Apr 01 00:22:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.144 1999/03/26 01:10:50 thorpej Exp $  */
+/*     $NetBSD: init_main.c,v 1.145 1999/04/01 00:22:45 thorpej Exp $  */
 
 /*
  * Copyright (c) 1995 Christopher G. Demetriou.  All rights reserved.
@@ -198,6 +198,9 @@
 
        uvm_init();
 
+       /* Do machine-dependent initialization. */
+       cpu_startup();
+
        /*
         * Initialize mbuf's.  Do this now because we might attempt to
         * allocate mbufs or mbuf clusters during autoconfiguration.
@@ -213,7 +216,7 @@
        rnd_init();
 #endif
        config_init();          /* init autoconfiguration data structures */
-       cpu_startup();
+       configure();            /* ...and configure the hardware */
 
        /*
         * Initialize process and pgrp structures.



Home | Main Index | Thread Index | Old Index