diff options
Diffstat (limited to 'sys/arch/sparc64/dev/viommu.c')
-rw-r--r-- | sys/arch/sparc64/dev/viommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |