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/2b52dc58121b
branches: trunk
changeset: 477234:2b52dc58121b
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Oct 17 09:32:14 1999 +0000
description:
include opt_ddb.h, so that symbol DDB actually get's defined appropriately
kill local definition of Debugger() - <sys/systm.h> DTRT
don't assume Debugger() is always available and put the call inside #ifdef DDB
Second part of a fix to PR #8637 by Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>.
diffstat:
sys/arch/sun3/dev/zs.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 6ae57990dd45 -r 2b52dc58121b sys/arch/sun3/dev/zs.c
--- a/sys/arch/sun3/dev/zs.c Sun Oct 17 09:27:21 1999 +0000
+++ b/sys/arch/sun3/dev/zs.c Sun Oct 17 09:32:14 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.57 1999/03/27 01:21:36 wrstuden Exp $ */
+/* $NetBSD: zs.c,v 1.58 1999/10/17 09:32:14 jdolecek Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -44,6 +44,8 @@
* Sun keyboard/mouse uses the zs_kbd/zs_ms slaves.
*/
+#include "opt_ddb.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
@@ -82,8 +84,6 @@
#define NZS 2
#endif
-extern void Debugger __P((void));
-
/*
* Some warts needed by z8530tty.c -
* The default parity REALLY needs to be the same as the PROM uses,
@@ -634,8 +634,9 @@
ZS_DELAY();
} while (rr0 & ZSRR0_BREAK);
- /* This is always available on the Sun3. */
+#ifdef DDB
Debugger();
+#endif
}
/*
Home |
Main Index |
Thread Index |
Old Index