* 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.
This commit is contained in:
parent
813b8d79fd
commit
d98e8d5bca
|
@ -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 @@ bootstrap()
|
|||
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 @@ bootstrap()
|
|||
/* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue