summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa/isa.c')
-rw-r--r--sys/i386/isa/isa.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/i386/isa/isa.c b/sys/i386/isa/isa.c
index eb28093..fe686e1 100644
--- a/sys/i386/isa/isa.c
+++ b/sys/i386/isa/isa.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: isa.c,v 1.114 1998/10/12 13:12:45 bde Exp $
+ * $Id: isa.c,v 1.115 1998/10/13 08:24:38 dg Exp $
*/
/*
@@ -557,7 +557,10 @@ config_isadev_c(isdp, mp, reconfig)
isdp->id_alive = id_alive;
}
(*dp->attach)(isdp);
- if (isdp->id_irq) {
+ if (isdp->id_irq != 0 && isdp->id_intr == NULL)
+ printf("%s%d: irq with no handler\n",
+ dp->name, isdp->id_unit);
+ if (isdp->id_irq != 0 && isdp->id_intr != NULL) {
#ifdef APIC_IO
/*
* Some motherboards use upper IRQs for traditional
@@ -594,7 +597,7 @@ config_isadev_c(isdp, mp, reconfig)
} else {
#if 0
/* This code has not been tested.... */
- if (isdp->id_irq) {
+ if (isdp->id_irq != 0 && isdp->id_intr != NULL) {
icu_unset(ffs(isdp->id_irq) - 1,
isdp->id_intr);
if (mp)
OpenPOWER on IntegriCloud