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:
parent
2a624cf907
commit
f95797fb06
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user