summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-06-07 15:28:16 +0000
committerimp <imp@FreeBSD.org>2002-06-07 15:28:16 +0000
commit1e247679d5df1f42c0ee52d013c50e8b20bcd2a9 (patch)
treea93886f28a8af85af607c1b03a22f23143a5e493 /sys
parentb86fb749744f9e4f044120529eca8a8d40825f9f (diff)
downloadFreeBSD-src-1e247679d5df1f42c0ee52d013c50e8b20bcd2a9.zip
FreeBSD-src-1e247679d5df1f42c0ee52d013c50e8b20bcd2a9.tar.gz
0 is not an invalid interrupt in the PCI world (just in the ia32
world), do not treat it as such. This fixes the alpha boot problem. Reviewed by: drew, des
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pcivar.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index bd0decf..e77a026 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -246,10 +246,12 @@ PCIB_ACCESSOR(bus, BUS, u_int32_t)
#undef PCIB_ACCESSOR
/*
- * PCI interrupt validation.
+ * PCI interrupt validation. Invalid interrupt values such as 0 or 128
+ * on i386 or other platforms should be mapped out in the MD pcireadconf
+ * code and not here, since the only MI invalid IRQ is 255.
*/
#define PCI_INVALID_IRQ 255
-#define PCI_INTERRUPT_VALID(x) (((x) != 0) && ((x) != PCI_INVALID_IRQ))
+#define PCI_INTERRUPT_VALID(x) ((x) != PCI_INVALID_IRQ)
/*
* Convenience functions.
OpenPOWER on IntegriCloud