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 Move and tweak an #if 0 printf
details: https://anonhg.NetBSD.org/src/rev/8b84fb1b4ca1
branches: trunk
changeset: 784422:8b84fb1b4ca1
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Jan 28 08:03:13 2013 +0000
description:
Move and tweak an #if 0 printf
diffstat:
sys/arch/arm/arm32/bus_dma.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (41 lines):
diff -r e87de7266f4f -r 8b84fb1b4ca1 sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c Mon Jan 28 06:38:50 2013 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c Mon Jan 28 08:03:13 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.71 2013/01/27 19:00:08 matt Exp $ */
+/* $NetBSD: bus_dma.c,v 1.72 2013/01/28 08:03:13 skrll 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.71 2013/01/27 19:00:08 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.72 2013/01/28 08:03:13 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -169,16 +169,17 @@
* If this region is coherent, mark the segment as coherent.
*/
_ds_flags |= dr->dr_flags & _BUS_DMAMAP_COHERENT;
-#if 0
- printf("%p: %#lx: range %#lx/%#lx/%#lx/%#x: %#x\n",
- t, paddr, dr->dr_sysbase, dr->dr_busbase,
- dr->dr_len, dr->dr_flags, _ds_flags);
-#endif
+
/*
* In a valid DMA range. Translate the physical
* memory address to an address in the DMA window.
*/
curaddr = (paddr - dr->dr_sysbase) + dr->dr_busbase;
+#if 0
+ printf("%p: %#lx: range %#lx/%#lx/%#lx/%#x: %#x <-- %#lx\n",
+ t, paddr, dr->dr_sysbase, dr->dr_busbase,
+ dr->dr_len, dr->dr_flags, _ds_flags, curaddr);
+#endif
} else
curaddr = paddr;
Home |
Main Index |
Thread Index |
Old Index