Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc * Correct the `flags' argument in call ...



details:   https://anonhg.NetBSD.org/src/rev/b86541f03fd0
branches:  trunk
changeset: 504398:b86541f03fd0
user:      pk <pk%NetBSD.org@localhost>
date:      Thu Mar 01 16:14:25 2001 +0000

description:
* Correct the `flags' argument in call to pmap_enter().
* Enable the message buffer at a temporary virtual address (KERNBASE)
  in bootstrap(), if that can be done.

diffstat:

 sys/arch/sparc/sparc/autoconf.c |  16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 1f432654bfa1 -r b86541f03fd0 sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c   Thu Mar 01 16:09:25 2001 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c   Thu Mar 01 16:14:25 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.143 2001/01/22 13:56:58 jdolecek Exp $ */
+/*     $NetBSD: autoconf.c,v 1.144 2001/03/01 16:14:25 pk Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -214,6 +214,17 @@
                       cpuinfo.mmu_nregion,
                       cpuinfo.mmu_nsegment);
 
+#if !defined(MSGBUFSIZE) || MSGBUFSIZE == 8192
+       /*
+        * Now that the kernel map has been set up, we can enable
+        * the message buffer at the first physical page in the
+        * memory bank where we were loaded. There are 8192
+        * bytes available for the buffer at this location (see the
+        * comment in locore.s at the top of the .text segment).
+        */
+       initmsgbuf((caddr_t)KERNBASE, 8192);
+#endif
+
        /* Moved zs_kgdb_init() to dev/zs.c:consinit(). */
 #ifdef DDB
        if ((bi_sym = lookup_bootinfo(BTINFO_SYMTAB)) != NULL) {
@@ -319,8 +330,7 @@
                /* Map Interrupt Enable Register */
                pmap_enter(pmap_kernel(), INTRREG_VA,
                    INT_ENABLE_REG_PHYSADR | PMAP_NC | PMAP_OBIO,
-                   VM_PROT_READ | VM_PROT_WRITE,
-                   VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
+                   VM_PROT_READ | VM_PROT_WRITE, PMAP_WIRED);
                /* Disable all interrupts */
                *((unsigned char *)INTRREG_VA) = 0;
        }



Home | Main Index | Thread Index | Old Index