diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-16 19:45:33 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-16 19:45:33 +0000 |
commit | 932526b9f20b41f7f875ae17b1139b17d7fdbe45 (patch) | |
tree | 38eb09254a17a289e9c50d9649db23bd01cd296d /sys | |
parent | 4593c03f0e858cda27d068e16152f8a5383d954f (diff) |
pmap = (conditional ? user_way : pmap = pmap_kernel());
doesn't need the second pmap =. "ok if you tested it" kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/dev/iommu.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/viommu.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/iommu.c b/sys/arch/sparc64/dev/iommu.c index 8da5a614f16..74a79567369 100644 --- a/sys/arch/sparc64/dev/iommu.c +++ b/sys/arch/sparc64/dev/iommu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iommu.c,v 1.53 2009/01/02 20:01:45 kettenis Exp $ */ +/* $OpenBSD: iommu.c,v 1.54 2009/03/16 19:45:32 oga Exp $ */ /* $NetBSD: iommu.c,v 1.47 2002/02/08 20:03:45 eeh Exp $ */ /* @@ -699,7 +699,7 @@ iommu_dvmamap_load(bus_dma_tag_t t, bus_dma_tag_t t0, bus_dmamap_t map, boundary = map->_dm_boundary; align = MAX(map->dm_segs[0]._ds_align, PAGE_SIZE); - pmap = p ? p->p_vmspace->vm_map.pmap : pmap = pmap_kernel(); + pmap = p ? p->p_vmspace->vm_map.pmap : pmap_kernel(); /* Count up the total number of pages we need */ iommu_iomap_clear_pages(ims); diff --git a/sys/arch/sparc64/dev/viommu.c b/sys/arch/sparc64/dev/viommu.c index 3c159c1841a..f7961874dbd 100644 --- a/sys/arch/sparc64/dev/viommu.c +++ b/sys/arch/sparc64/dev/viommu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: viommu.c,v 1.2 2009/01/02 20:01:45 kettenis Exp $ */ +/* $OpenBSD: viommu.c,v 1.3 2009/03/16 19:45:32 oga Exp $ */ /* $NetBSD: iommu.c,v 1.47 2002/02/08 20:03:45 eeh Exp $ */ /* @@ -313,7 +313,7 @@ viommu_dvmamap_load(bus_dma_tag_t t, bus_dma_tag_t t0, bus_dmamap_t map, boundary = map->_dm_boundary; align = MAX(map->dm_segs[0]._ds_align, PAGE_SIZE); - pmap = p ? p->p_vmspace->vm_map.pmap : pmap = pmap_kernel(); + pmap = p ? p->p_vmspace->vm_map.pmap : pmap_kernel(); /* Count up the total number of pages we need */ iommu_iomap_clear_pages(ims); |