Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sun3/dev include opt_ddb.h, so that symbol DDB actu...



details:   https://anonhg.NetBSD.org/src/rev/6ae57990dd45
branches:  trunk
changeset: 477233:6ae57990dd45
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Oct 17 09:27:21 1999 +0000

description:
include opt_ddb.h, so that symbol DDB actually get's defined appropriately
si_intr(): consmetic change to the code calling Debugger()

First part of fix to PR #8637 by Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>.

diffstat:

 sys/arch/sun3/dev/si.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 13dd9d597de8 -r 6ae57990dd45 sys/arch/sun3/dev/si.c
--- a/sys/arch/sun3/dev/si.c    Sun Oct 17 06:22:05 1999 +0000
+++ b/sys/arch/sun3/dev/si.c    Sun Oct 17 09:27:21 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: si.c,v 1.43 1999/02/02 04:57:11 fair Exp $     */
+/*     $NetBSD: si.c,v 1.44 1999/10/17 09:27:21 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -76,6 +76,8 @@
  * The autoconfiguration boilerplate came from Adam Glass.
  */
 
+#include "opt_ddb.h"
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/errno.h>
@@ -270,11 +272,10 @@
 #ifdef DEBUG
                if (!claimed) {
                        printf("si_intr: spurious from SBC\n");
-                       if (si_debug & 4) {
 #ifdef DDB
+                       if (si_debug & 4)
                                Debugger();     /* XXX */
 #endif
-                       }
                }
 #endif
                /* Yes, we DID cause this interrupt. */



Home | Main Index | Thread Index | Old Index