Update for the KDB framework:

o  Call kdb_enter() instead of Debugger().
o  Don't make such calls conditional upon KDB instead of DDB because
   they're already conditional upon EN_DEBUG.
This commit is contained in:
Marcel Moolenaar 2004-07-10 21:03:52 +00:00
parent ed9c21cd74
commit c6ca21fb13

View File

@ -127,6 +127,7 @@ enum {
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kdb.h>
#include <sys/queue.h>
#include <sys/sockio.h>
#include <sys/socket.h>
@ -2442,9 +2443,7 @@ en_intr(void *arg)
if_printf(&sc->ifatm.ifnet, "unexpected interrupt=0x%b, "
"resetting\n", reg, MID_INTBITS);
#ifdef EN_DEBUG
#ifdef DDB
Debugger("en: unexpected error");
#endif /* DDB */
kdb_enter("en: unexpected error");
sc->ifatm.ifnet.if_flags &= ~IFF_RUNNING; /* FREEZE! */
#else
en_reset_ul(sc);