From 4a1462f7b010a1c789fafcad7ace757dad85779d Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 19 Jul 2011 19:55:23 +0000 Subject: [PATCH] Fix missed change of BUS_DMA_NOCACHE to BUS_DMA_DONTCACHE. --- sys/arch/powerpc/powerpc/bus_dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/powerpc/powerpc/bus_dma.c b/sys/arch/powerpc/powerpc/bus_dma.c index a981216c7652..13393576ecee 100644 --- a/sys/arch/powerpc/powerpc/bus_dma.c +++ b/sys/arch/powerpc/powerpc/bus_dma.c @@ -1,4 +1,4 @@ -/* $NetBSD: bus_dma.c,v 1.43 2011/07/17 23:23:54 dyoung Exp $ */ +/* $NetBSD: bus_dma.c,v 1.44 2011/07/19 19:55:23 matt Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #define _POWERPC_BUS_DMA_PRIVATE #include -__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.43 2011/07/17 23:23:54 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.44 2011/07/19 19:55:23 matt Exp $"); #include #include @@ -605,7 +605,7 @@ _bus_dmamem_map(bus_dma_tag_t t, bus_dma_segment_t *segs, int nsegs, size_t size * If we are mapping a cacheable physically contiguous segment, treat * it as if we are mapping a poolpage and avoid consuming any KVAs. */ - if (nsegs == 1 && (flags & BUS_DMA_NOCACHE) == 0) { + if (nsegs == 1 && (flags & BUS_DMA_DONTCACHE) == 0) { KASSERT(size == segs->ds_len); addr = BUS_MEM_TO_PHYS(t, segs->ds_addr); *kvap = (void *)PMAP_MAP_POOLPAGE(addr);