summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2000-06-06 20:51:42 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2000-06-06 20:51:42 +0000
commit73c0574a026038495684f099bd19d32fff7614a3 (patch)
treed45ff213814c70ed87457622438858c0adcf8781
parent12149742d8b2c4e17d6b8d46879357462c880728 (diff)
Make si compile with non-DDB kernels
-rw-r--r--sys/arch/sun3/dev/si.c8
-rw-r--r--sys/arch/sun3/dev/si_obio.c6
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/arch/sun3/dev/si.c b/sys/arch/sun3/dev/si.c
index 9b32b6ae59c..f73e98f71be 100644
--- a/sys/arch/sun3/dev/si.c
+++ b/sys/arch/sun3/dev/si.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: si.c,v 1.9 1999/01/11 05:12:02 millert Exp $ */
+/* $OpenBSD: si.c,v 1.10 2000/06/06 20:51:41 miod Exp $ */
/* $NetBSD: si.c,v 1.31 1996/11/20 18:56:59 gwr Exp $ */
/*-
@@ -95,6 +95,10 @@
#include <machine/obio.h>
#include <machine/dvma.h>
+#ifndef DDB
+#define Debugger()
+#endif
+
#define DEBUG XXX
#include <dev/ic/ncr5380reg.h>
@@ -365,8 +369,10 @@ si_dma_alloc(ncr_sc)
* XXX - Should just segment these...
*/
if (xlen > MAX_DMA_LEN) {
+#ifdef DEBUG
printf("si_dma_alloc: excessive xlen=0x%x\n", xlen);
Debugger();
+#endif
ncr_sc->sc_datalen = xlen = MAX_DMA_LEN;
}
diff --git a/sys/arch/sun3/dev/si_obio.c b/sys/arch/sun3/dev/si_obio.c
index 8787786723a..abec4af0210 100644
--- a/sys/arch/sun3/dev/si_obio.c
+++ b/sys/arch/sun3/dev/si_obio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: si_obio.c,v 1.8 1997/09/11 16:09:59 kstailey Exp $ */
+/* $OpenBSD: si_obio.c,v 1.9 2000/06/06 20:51:41 miod Exp $ */
/* $NetBSD: si_obio.c,v 1.7 1996/11/20 18:57:00 gwr Exp $ */
/*-
@@ -99,6 +99,10 @@
#include <machine/obio.h>
#include <machine/dvma.h>
+#ifndef DDB
+#define Debugger()
+#endif
+
#define DEBUG XXX
#include <dev/ic/ncr5380reg.h>