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>.
This commit is contained in:
jdolecek 1999-10-17 09:32:14 +00:00
parent 492bb4b0a6
commit ded7bf0c50
1 changed files with 5 additions and 4 deletions

View File

@ -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_abort(cs)
ZS_DELAY();
} while (rr0 & ZSRR0_BREAK);
/* This is always available on the Sun3. */
#ifdef DDB
Debugger();
#endif
}
/*