Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/atari Do the mesgbuf initialisation a bit ear...



details:   https://anonhg.NetBSD.org/src/rev/e3452ccc5286
branches:  trunk
changeset: 474830:e3452ccc5286
user:      leo <leo%NetBSD.org@localhost>
date:      Thu Jul 22 09:20:38 1999 +0000

description:
Do the mesgbuf initialisation a bit earlier in the boot process. This
makes debugging the console somewhat easier.

diffstat:

 sys/arch/atari/atari/machdep.c |  27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diffs (51 lines):

diff -r f9366ce52d6f -r e3452ccc5286 sys/arch/atari/atari/machdep.c
--- a/sys/arch/atari/atari/machdep.c    Thu Jul 22 03:59:42 1999 +0000
+++ b/sys/arch/atari/atari/machdep.c    Thu Jul 22 09:20:38 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.85 1999/06/28 08:20:43 itojun Exp $      */
+/*     $NetBSD: machdep.c,v 1.86 1999/07/22 09:20:38 leo Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -130,6 +130,19 @@
 void
 consinit()
 {
+       int     i;
+
+       /*
+        * Initialize error message buffer. pmap_bootstrap() has
+        * positioned this at the end of kernel memory segment - map
+        * and initialize it now.
+        */
+       for (i = 0; i < btoc(MSGBUFSIZE); i++)
+               pmap_enter(pmap_kernel(), (vaddr_t)msgbufaddr + i * NBPG,
+                   msgbufpa + i * NBPG, VM_PROT_READ|VM_PROT_WRITE, TRUE,
+                   VM_PROT_READ|VM_PROT_WRITE);
+       initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
+
        /*
         * Initialize the console before we print anything out.
         */
@@ -168,21 +181,9 @@
                 vsize_t        size = 0;
        extern   vsize_t        mem_size;       /* from pmap.c */
 
-       /*
-        * Initialize error message buffer (at end of core).
-        */
 #ifdef DEBUG
        pmapdebug = 0;
 #endif
-       /*
-        * pmap_bootstrap has positioned this at the end of kernel
-        * memory segment - map and initialize it now.
-        */
-       for (i = 0; i < btoc(MSGBUFSIZE); i++)
-               pmap_enter(pmap_kernel(), (vaddr_t)msgbufaddr + i * NBPG,
-                   msgbufpa + i * NBPG, VM_PROT_READ|VM_PROT_WRITE, TRUE,
-                   VM_PROT_READ|VM_PROT_WRITE);
-       initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
 
        /*
         * Good {morning,afternoon,evening,night}.



Home | Main Index | Thread Index | Old Index