summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-22 09:23:52 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-22 09:23:52 +0000
commiteacf773a7637cad71b1b37676d5bda1f752b110c (patch)
tree4750537011820df7cb20d81be38b6fd8aa940e40 /sys/arch/sparc
parent228c30b8714701c0e050a220ecfd6334188771e1 (diff)
Use pmap_map to map the msg buffer.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/machdep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index 46cb6e28706..ad361539368 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.68 2001/11/09 15:25:55 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.69 2001/11/22 09:23:51 art Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
@@ -176,8 +176,7 @@ cpu_startup()
/*
* fix message buffer mapping, note phys addr of msgbuf is 0
*/
- pmap_enter(pmap_kernel(), MSGBUF_VA, 0x0, VM_PROT_READ|VM_PROT_WRITE,
- VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED);
+ pmap_map(MSGBUF_VA, 0, MSGBUFSIZE, VM_PROT_READ|VM_PROT_WRITE);
initmsgbuf((caddr_t)(MSGBUF_VA + (CPU_ISSUN4 ? 4096 : 0)), MSGBUFSIZE);
proc0.p_addr = proc0paddr;