summaryrefslogtreecommitdiffstats
path: root/sys/dev/en
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-05-27 12:45:05 +0000
committerrwatson <rwatson@FreeBSD.org>2007-05-27 12:45:05 +0000
commitba0252cfbabf40b1537e26f5840943a8ab6e9325 (patch)
tree840252cf7bab97d7439fb6dfb1b3c7a0e9104631 /sys/dev/en
parent4056c43f11fefc760422ae9768bdc1f6e453d278 (diff)
downloadFreeBSD-src-ba0252cfbabf40b1537e26f5840943a8ab6e9325.zip
FreeBSD-src-ba0252cfbabf40b1537e26f5840943a8ab6e9325.tar.gz
Rather than entering DDB with the message "unexpected error" and wedging
the card, panic explicitly if EN_DEBUG is enabled. In the (default) case of !EN_DEBUG, the driver resets the card. Probably this case shouldn't exist at all.
Diffstat (limited to 'sys/dev/en')
-rw-r--r--sys/dev/en/midway.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/en/midway.c b/sys/dev/en/midway.c
index 85e4a80..aaa8570b 100644
--- a/sys/dev/en/midway.c
+++ b/sys/dev/en/midway.c
@@ -2435,8 +2435,7 @@ en_intr(void *arg)
device_printf(sc->dev, "unexpected interrupt=0x%b, "
"resetting\n", reg, MID_INTBITS);
#ifdef EN_DEBUG
- kdb_enter("en: unexpected error");
- sc->ifp->if_drv_flags &= ~IFF_DRV_RUNNING; /* FREEZE! */
+ panic("en: unexpected error");
#else
en_reset_ul(sc);
en_init(sc);
OpenPOWER on IntegriCloud