Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev/g2 Add some info to the dmamap_sync a...
details: https://anonhg.NetBSD.org/src/rev/faa5a8c3c604
branches: trunk
changeset: 503150:faa5a8c3c604
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Feb 01 19:56:44 2001 +0000
description:
Add some info to the dmamap_sync assertion messages.
diffstat:
sys/arch/dreamcast/dev/g2/gapspci_dma.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r dc18d2481174 -r faa5a8c3c604 sys/arch/dreamcast/dev/g2/gapspci_dma.c
--- a/sys/arch/dreamcast/dev/g2/gapspci_dma.c Thu Feb 01 19:46:42 2001 +0000
+++ b/sys/arch/dreamcast/dev/g2/gapspci_dma.c Thu Feb 01 19:56:44 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gapspci_dma.c,v 1.2 2001/02/01 19:35:04 marcus Exp $ */
+/* $NetBSD: gapspci_dma.c,v 1.3 2001/02/01 19:56:44 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -358,10 +358,16 @@
#ifdef DIAGNOSTIC
if ((ops & (BUS_DMASYNC_PREWRITE|BUS_DMASYNC_POSTREAD)) != 0) {
- if (offset >= map->dm_mapsize)
+ if (offset >= map->dm_mapsize) {
+ printf("offset 0x%lx mapsize 0x%lx\n",
+ offset, map->dm_mapsize);
panic("gaps_dmamap_sync: bad offset");
- if (len == 0 || (offset + len) > map->dm_mapsize)
+ }
+ if (len == 0 || (offset + len) > map->dm_mapsize) {
+ printf("len 0x%lx offset 0x%lx mapsize 0x%lx\n",
+ len, offset, map->dm_mapsize);
panic("gaps_dmamap_sync: bad length");
+ }
}
#endif
Home |
Main Index |
Thread Index |
Old Index