summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-11-09 14:30:40 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-11-09 14:30:40 +0000
commitbcc9540e13988f3bd4e39ac9db404392e86e8fbd (patch)
treeeef016de327deb32fe6e6930a6dca29be7cb93ea
parent8b78ee8a6b743e746dcc561b3f87a9613735ab08 (diff)
Adapt to pmap_enter changes.
-rw-r--r--sys/arch/sun3/sun3/autoconf.c4
-rw-r--r--sys/arch/sun3/sun3/machdep.c4
-rw-r--r--sys/arch/sun3/sun3/vm_machdep.c9
3 files changed, 9 insertions, 8 deletions
diff --git a/sys/arch/sun3/sun3/autoconf.c b/sys/arch/sun3/sun3/autoconf.c
index 7f30bb1a435..b56dd2e0cca 100644
--- a/sys/arch/sun3/sun3/autoconf.c
+++ b/sys/arch/sun3/sun3/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.7 1997/09/07 14:05:19 kstailey Exp $ */
+/* $OpenBSD: autoconf.c,v 1.8 1999/11/09 14:30:39 art Exp $ */
/* $NetBSD: autoconf.c,v 1.37 1996/11/20 18:57:22 gwr Exp $ */
/*-
@@ -287,7 +287,7 @@ bus_mapin(bustype, paddr, sz)
pmap_map((int)va, pa | pmt, pa + sz, VM_PROT_ALL);
#else
do {
- pmap_enter(pmap_kernel(), va, pa | pmt, VM_PROT_ALL, FALSE);
+ pmap_enter(pmap_kernel(), va, pa | pmt, VM_PROT_ALL, FALSE, 0);
va += NBPG;
pa += NBPG;
} while ((sz -= NBPG) > 0);
diff --git a/sys/arch/sun3/sun3/machdep.c b/sys/arch/sun3/sun3/machdep.c
index 1b0190a635b..5c0688a99a2 100644
--- a/sys/arch/sun3/sun3/machdep.c
+++ b/sys/arch/sun3/sun3/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.23 1999/05/22 21:22:31 weingart Exp $ */
+/* $OpenBSD: machdep.c,v 1.24 1999/11/09 14:30:39 art Exp $ */
/* $NetBSD: machdep.c,v 1.77 1996/10/13 03:47:51 christos Exp $ */
/*
@@ -805,7 +805,7 @@ dumpsys()
if ((todo & 0xf) == 0)
printf("\r%4d", todo);
pmap_enter(pmap_kernel(), vmmap, paddr | PMAP_NC,
- VM_PROT_READ, FALSE);
+ VM_PROT_READ, FALSE, VM_PROT_READ);
error = (*dsw->d_dump)(dumpdev, blkno, vaddr, NBPG);
pmap_remove(pmap_kernel(), vmmap, vmmap + NBPG);
if (error)
diff --git a/sys/arch/sun3/sun3/vm_machdep.c b/sys/arch/sun3/sun3/vm_machdep.c
index 983724699ee..b4a68c9889c 100644
--- a/sys/arch/sun3/sun3/vm_machdep.c
+++ b/sys/arch/sun3/sun3/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.9 1999/08/17 10:32:18 niklas Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.10 1999/11/09 14:30:39 art Exp $ */
/* $NetBSD: vm_machdep.c,v 1.35 1996/04/26 18:38:06 gwr Exp $ */
/*
@@ -163,7 +163,7 @@ cpu_fork(p1, p2, stack, stacksize)
void
cpu_set_kpc(proc, func, arg)
struct proc *proc;
- void (*func)(void *);
+ void (*func) __P((void *));
void *arg;
{
struct pcb *pcbp;
@@ -306,7 +306,8 @@ pagemove(from, to, size)
pmap_remove(pmap_kernel(),
(vm_offset_t)from, (vm_offset_t)from + NBPG);
pmap_enter(pmap_kernel(),
- (vm_offset_t)to, pa, VM_PROT_READ|VM_PROT_WRITE, 1);
+ (vm_offset_t)to, pa, VM_PROT_READ|VM_PROT_WRITE, 1,
+ VM_PROT_READ|VM_PROT_WRITE);
from += NBPG;
to += NBPG;
size -= NBPG;
@@ -374,7 +375,7 @@ vmapbuf(bp, sz)
#endif
pmap_enter(pmap_kernel(), kva,
pa | PMAP_NC,
- VM_PROT_READ|VM_PROT_WRITE, TRUE);
+ VM_PROT_READ|VM_PROT_WRITE, TRUE, 0);
addr += NBPG;
kva += NBPG;
}