From 12eea21c72f6994d2c57c145d0b5575c651524f0 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Sun, 17 Oct 1999 09:40:49 +0000 Subject: [PATCH] include opt_ddb.h so that symbol DDB gets defined appropriately and right thing happens WRT Debugger() call Debugger() only when DDB is defined --- sys/arch/sun3/dev/si_obio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/sun3/dev/si_obio.c b/sys/arch/sun3/dev/si_obio.c index 8414e3b67e89..8a752103d00e 100644 --- a/sys/arch/sun3/dev/si_obio.c +++ b/sys/arch/sun3/dev/si_obio.c @@ -1,4 +1,4 @@ -/* $NetBSD: si_obio.c,v 1.19 1998/02/05 04:56:45 gwr Exp $ */ +/* $NetBSD: si_obio.c,v 1.20 1999/10/17 09:40:49 jdolecek Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -80,6 +80,8 @@ * OBIO functions for DMA ****************************************************************/ +#include "opt_ddb.h" + #include #include #include @@ -337,7 +339,9 @@ si_obio_dma_setup(ncr_sc) if (si->fifo_count != xlen) { printf("si_dma_setup: fifo_count=0x%x, xlen=0x%x\n", si->fifo_count, xlen); +#ifdef DDB Debugger(); +#endif } #endif