summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2011-10-28 15:17:03 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2011-10-28 15:17:03 +0000
commit6be7df1291bef58b0483f0c224c4085302a1bf6c (patch)
treec422eeba47c26068a433fa41b1d109beb67886ea /sys/arch/macppc
parentea9ab93fc4a80c16c355aeb7ba8d07bad6c92520 (diff)
Ignore devices with irq 0 on mpcpci bus, the only devices seen this
way is hardware not found in the openfirmware tree. diff from kettenis@ commit it deraadt@
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/pci/mpcpcibus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/pci/mpcpcibus.c b/sys/arch/macppc/pci/mpcpcibus.c
index 33d91c03056..4c530f2b431 100644
--- a/sys/arch/macppc/pci/mpcpcibus.c
+++ b/sys/arch/macppc/pci/mpcpcibus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpcpcibus.c,v 1.42 2011/01/08 18:10:23 deraadt Exp $ */
+/* $OpenBSD: mpcpcibus.c,v 1.43 2011/10/28 15:17:02 drahn Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -891,7 +891,7 @@ mpc_intr_map(void *lcv, pcitag_t bustag, int buspin, int line,
printf("mpc_intr_map: bad interrupt pin %d\n", buspin);
error = 1;
}
- if (line == 0xff)
+ if (line == 0xff || line == 0)
error = 1;
if (!error)