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 Fix BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREW...



details:   https://anonhg.NetBSD.org/src/rev/dbeb1eb7415c
branches:  trunk
changeset: 433428:dbeb1eb7415c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Sep 14 10:13:02 2018 +0000

description:
Fix  BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE for aarch64.

The readonly mbuf optimisation is for the old arm pmap.

diffstat:

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

diffs (27 lines):

diff -r 7194888d3ede -r dbeb1eb7415c sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c      Fri Sep 14 09:51:09 2018 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c      Fri Sep 14 10:13:02 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.112 2018/09/03 16:29:23 riastradh Exp $  */
+/*     $NetBSD: bus_dma.c,v 1.113 2018/09/14 10:13:02 skrll Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #include "opt_cputypes.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.112 2018/09/03 16:29:23 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.113 2018/09/14 10:13:02 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -796,7 +796,7 @@
     bool readonly_p)
 {
 
-#ifdef ARM_MMU_EXTENDED
+#if defined(ARM_MMU_EXTENDED) || defined(CPU_CORTEX)
        /*
         * No optimisations are available for readonly mbufs on armv6+, so
         * assume it's not readonly from here on.



Home | Main Index | Thread Index | Old Index