summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-12-08 02:24:08 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-12-08 02:24:08 +0000
commit9d60d5abd9786f2184ff5714f221264c291225aa (patch)
tree71197001dc10102fc702df7ebc630748f8f40d9e /sys/arch/sparc/dev
parent76e77305cc16957c8ab6b04545a4d21c35a51adb (diff)
Sprinkle pmap_update calls where relevant and some other
misc pmap usage fixes.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/fga.c4
-rw-r--r--sys/arch/sparc/dev/if_ie.c3
-rw-r--r--sys/arch/sparc/dev/obio.c3
3 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/fga.c b/sys/arch/sparc/dev/fga.c
index b9342d76021..2234c63b868 100644
--- a/sys/arch/sparc/dev/fga.c
+++ b/sys/arch/sparc/dev/fga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fga.c,v 1.5 2001/11/06 19:53:16 miod Exp $ */
+/* $OpenBSD: fga.c,v 1.6 2001/12/08 02:24:07 art Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -781,9 +781,11 @@ fvmescan(parent, child, aux)
if ((*cf->cf_attach->ca_match)(parent, cf, &oca) == 0) {
pmap_remove(pmap_kernel(), TMPMAP_VA, TMPMAP_VA + NBPG);
+ pmap_update(pmap_kernel());
return (0);
}
pmap_remove(pmap_kernel(), TMPMAP_VA, TMPMAP_VA + NBPG);
+ pmap_update(pmap_kernel());
oca.ca_ra.ra_reg[0].rr_paddr = (void *)paddr;
config_attach(parent, cf, &oca, fvmeprint);
diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c
index 781ce58e5a7..0374cd3bbb2 100644
--- a/sys/arch/sparc/dev/if_ie.c
+++ b/sys/arch/sparc/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.21 2001/11/29 11:29:58 art Exp $ */
+/* $OpenBSD: if_ie.c,v 1.22 2001/12/08 02:24:07 art Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
@@ -565,6 +565,7 @@ ieattach(parent, self, aux)
pmap_enter(pmap_kernel(), trunc_page(IEOB_ADBASE+IE_SCP_ADDR),
(paddr_t)pa | PMAP_NC /*| PMAP_IOC*/,
VM_PROT_READ | VM_PROT_WRITE, PMAP_WIRED);
+ pmap_update(pmap_kernel());
sc->scp = (volatile struct ie_sys_conf_ptr *)
(IEOB_ADBASE + IE_SCP_ADDR);
diff --git a/sys/arch/sparc/dev/obio.c b/sys/arch/sparc/dev/obio.c
index ee804c06d78..5b0b22b5687 100644
--- a/sys/arch/sparc/dev/obio.c
+++ b/sys/arch/sparc/dev/obio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: obio.c,v 1.9 2001/11/06 19:53:16 miod Exp $ */
+/* $OpenBSD: obio.c,v 1.10 2001/12/08 02:24:07 art Exp $ */
/* $NetBSD: obio.c,v 1.37 1997/07/29 09:58:11 fair Exp $ */
/*
@@ -663,4 +663,5 @@ void
bus_untmp()
{
pmap_remove(pmap_kernel(), TMPMAP_VA, TMPMAP_VA+NBPG);
+ pmap_update(pmap_kernel());
}