diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-08 02:24:08 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-08 02:24:08 +0000 |
commit | 9d60d5abd9786f2184ff5714f221264c291225aa (patch) | |
tree | 71197001dc10102fc702df7ebc630748f8f40d9e /sys/arch/macppc | |
parent | 76e77305cc16957c8ab6b04545a4d21c35a51adb (diff) |
Sprinkle pmap_update calls where relevant and some other
misc pmap usage fixes.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/macppc/dma.c | 3 | ||||
-rw-r--r-- | sys/arch/macppc/macppc/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/macppc/macppc/ofw_machdep.c | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/macppc/macppc/dma.c b/sys/arch/macppc/macppc/dma.c index b92c6c7e404..05692de52e6 100644 --- a/sys/arch/macppc/macppc/dma.c +++ b/sys/arch/macppc/macppc/dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dma.c,v 1.7 2001/11/28 16:24:26 art Exp $ */ +/* $OpenBSD: dma.c,v 1.8 2001/12/08 02:24:06 art Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -405,6 +405,7 @@ _dmamem_map(t, segs, nsegs, size, kvap, flags) VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED); } } + pmap_update(pmap_kernel()); return (0); } diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index e4f8fecdc67..dfc242a6df7 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.17 2001/11/28 16:13:28 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.18 2001/12/08 02:24:06 art Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -583,6 +583,7 @@ cpu_startup() curbufsize -= PAGE_SIZE; } } + pmap_update(pmap_kernel()); /* * Allocate a submap for exec arguments. This map effectively @@ -1174,6 +1175,7 @@ bus_space_unmap(t, bsh, size) } #endif pmap_remove(vm_map_pmap(phys_map), sva, sva+len); + pmap_update(pmap_kernel()); } int @@ -1300,7 +1302,7 @@ unmapiodev(kva, p_size) #endif vaddr += PAGE_SIZE; } - return; + pmap_update(pmap_kernel()); } diff --git a/sys/arch/macppc/macppc/ofw_machdep.c b/sys/arch/macppc/macppc/ofw_machdep.c index 1cdc61e33fd..73ab9c29def 100644 --- a/sys/arch/macppc/macppc/ofw_machdep.c +++ b/sys/arch/macppc/macppc/ofw_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_machdep.c,v 1.4 2001/11/06 19:53:15 miod Exp $ */ +/* $OpenBSD: ofw_machdep.c,v 1.5 2001/12/08 02:24:06 art Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */ /* @@ -197,6 +197,7 @@ restore_ofw_mapping() size -= NBPG; } } + pmap_update(pmap_kernel()); return 0; } |