Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Disable when using extended MMU support.



details:   https://anonhg.NetBSD.org/src/rev/457005d735f6
branches:  trunk
changeset: 785015:457005d735f6
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Feb 18 16:03:25 2013 +0000

description:
Disable when using extended MMU support.

diffstat:

 sys/arch/arm/arm32/bus_dma.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 38ddcdcbd4dc -r 457005d735f6 sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c      Mon Feb 18 15:32:02 2013 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c      Mon Feb 18 16:03:25 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.79 2013/02/16 06:49:43 matt Exp $        */
+/*     $NetBSD: bus_dma.c,v 1.80 2013/02/18 16:03:25 matt Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #define _ARM32_BUS_DMA_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.79 2013/02/16 06:49:43 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.80 2013/02/18 16:03:25 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1064,6 +1064,7 @@
        }
 #endif /* _ARM32_NEED_BUS_DMA_BOUNCE */
 
+#ifndef ARM_MMU_EXTENDED
        /*
         * If the mapping belongs to a non-kernel vmspace, and the
         * vmspace has not been active since the last time a full
@@ -1072,6 +1073,7 @@
        if (__predict_false(!VMSPACE_IS_KERNEL_P(map->_dm_vmspace) &&
            vm_map_pmap(&map->_dm_vmspace->vm_map)->pm_cstate.cs_cache_d == 0))
                return;
+#endif
 
        int buftype = map->_dm_buftype;
 #ifdef _ARM32_NEED_BUS_DMA_BOUNCE



Home | Main Index | Thread Index | Old Index