summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-11-16 20:58:46 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-11-16 20:58:46 +0000
commitc824c59c3ae339b49a45f9a53984080cb2fe16e2 (patch)
treebacb1b2ae6bf8d27871bad4ecd3e9ec52f5d763e /sys
parentb557223054e47aa28363eddb26bcbead4a0a40c6 (diff)
remove #if 1 and some other debugging stuff
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index 364b3093ead..2012d38b4e2 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.23 2001/11/16 16:42:45 jason Exp $ */
+/* $OpenBSD: machdep.c,v 1.24 2001/11/16 20:58:45 jason Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -1180,16 +1180,7 @@ _bus_dmamap_load(t, map, buf, buflen, p, flags)
map->dm_nsegs = 0;
if (buflen > map->_dm_size)
- {
-#ifdef DEBUG
- printf("_bus_dmamap_load(): error %lu > %lu -- map size exceeded!\n",
- (unsigned long)buflen, (unsigned long)map->_dm_size);
-#ifdef DDB
- Debugger();
-#endif
-#endif
- return (EINVAL);
- }
+ return (EFBIG);
sgsize = round_page(buflen + ((int)vaddr & PGOFSET));
@@ -1232,7 +1223,6 @@ _bus_dmamap_load_mbuf(t, map, m, flags)
struct mbuf *m;
int flags;
{
-#if 1
bus_dma_segment_t segs[MAX_DMA_SEGS];
int i;
size_t len;
@@ -1281,10 +1271,6 @@ _bus_dmamap_load_mbuf(t, map, m, flags)
return (bus_dmamap_load_raw(t, map, segs, i,
(bus_size_t)len, flags));
-#else
- panic("_bus_dmamap_load_mbuf: not implemented");
- return 0;
-#endif
}
/*