From a67fa10338ca70d5645855c20de08f12fd200971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Thu, 23 Jan 1997 22:58:03 +0000 Subject: [PATCH] Make IRQ 0 invalid in pci_map_int(), since it is hardwired to the programmable interval timer chip in PC systems. --- sys/dev/pci/pci.c | 2 +- sys/pci/pci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 08ad7d97f1e..23c110909df 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/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); }; diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 08ad7d97f1e..23c110909df 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); };