summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-08-18 20:21:11 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-08-18 20:21:11 +0000
commit57f30f1b4d81c1460359d15d7e7f4e05c090bac9 (patch)
treedf8537a7356c693e82b7b3d23ddfd3e38996f9e1 /sys
parentb64c597cf281625823b9fc4c386d2b29764967cc (diff)
Correct mapping of the kernel message buffer. From NetBSD
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hp300/hp300/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c
index 9cdd692e170..a7ed733484b 100644
--- a/sys/arch/hp300/hp300/machdep.c
+++ b/sys/arch/hp300/hp300/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.55 2001/07/25 13:25:31 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.56 2001/08/18 20:21:10 miod Exp $ */
/* $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $ */
/*
@@ -274,7 +274,7 @@ cpu_startup()
* avail_end was pre-decremented in pmap_bootstrap to compensate.
*/
for (i = 0; i < btoc(MSGBUFSIZE); i++)
- pmap_enter(pmap_kernel(), (vaddr_t)msgbufp,
+ pmap_enter(pmap_kernel(), (vaddr_t)msgbufp + i * NBPG,
avail_end + i * NBPG, VM_PROT_ALL, VM_PROT_ALL|PMAP_WIRED);
initmsgbuf((caddr_t)msgbufp, round_page(MSGBUFSIZE));