diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-04 23:22:43 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-04 23:22:43 +0000 |
commit | 2d6ebc6b1044ef771b2b25c09c2abffe0c0a0d3d (patch) | |
tree | f85c4269fcfa3a0ec1575186dfcbcbbb1ebaf8d7 /sys/arch/sparc64/dev | |
parent | f1bec1965343db9a80a80e7ed55ee2fe5dd36253 (diff) |
Yet another sync to NetBSD uvm.
Today we add a pmap argument to pmap_update() and allocate map entries for
kernel_map from kmem_map instead of using the static entries. This should
get rid of MAX_KMAPENT panics. Also some uvm_loan problems are fixed.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/iommu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/iommu.c b/sys/arch/sparc64/dev/iommu.c index 9fe244ca7d8..fed8646aac6 100644 --- a/sys/arch/sparc64/dev/iommu.c +++ b/sys/arch/sparc64/dev/iommu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iommu.c,v 1.6 2001/11/06 19:53:16 miod Exp $ */ +/* $OpenBSD: iommu.c,v 1.7 2001/12/04 23:22:42 art Exp $ */ /* $NetBSD: iommu.c,v 1.42 2001/10/07 20:30:40 eeh Exp $ */ /* @@ -224,7 +224,7 @@ iommu_init(name, is, tsbsize, iovabase) VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED); va += NBPG; } - pmap_update(); + pmap_update(pmap_kernel()); bzero(is->is_tsb, size); #ifdef DEBUG @@ -1114,7 +1114,7 @@ iommu_dvmamem_map(t, is, segs, nsegs, size, kvap, flags) va += PAGE_SIZE; size -= PAGE_SIZE; } - pmap_update(); + pmap_update(pmap_kernel()); return (0); } @@ -1140,7 +1140,7 @@ iommu_dvmamem_unmap(t, is, kva, size) size = round_page(size); pmap_remove(pmap_kernel(), (vaddr_t)kva, size); - pmap_update(); + pmap_update(pmap_kernel()); #if 0 /* * XXX ? is this necessary? i think so and i think other |