diff options
author | se <se@FreeBSD.org> | 1997-01-23 22:58:03 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 1997-01-23 22:58:03 +0000 |
commit | 704d6242cf58ec56922eadc2391551d4dbcc9674 (patch) | |
tree | da86d931f86e66c44a481528581fbb25fadd7120 /sys/pci/pci.c | |
parent | 6d91e1473666dc73dd8db64106024cdbcb318dd7 (diff) | |
download | FreeBSD-src-704d6242cf58ec56922eadc2391551d4dbcc9674.zip FreeBSD-src-704d6242cf58ec56922eadc2391551d4dbcc9674.tar.gz |
Make IRQ 0 invalid in pci_map_int(), since it is hardwired to the
programmable interval timer chip in PC systems.
Diffstat (limited to 'sys/pci/pci.c')
-rw-r--r-- | sys/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 08ad7d9..23c1109 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -1315,7 +1315,7 @@ int pci_map_int (pcici_t tag, pci_inthand_t *func, void *arg, unsigned *maskptr) */ irq = getirq (tag); - if (irq >= PCI_MAX_IRQ) { + if ((irq == 0) || (irq >= PCI_MAX_IRQ)) { printf ("\tillegal irq %d.\n", irq); return (0); }; |