summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppc
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>1999-02-14 22:02:47 +0000
committernsouch <nsouch@FreeBSD.org>1999-02-14 22:02:47 +0000
commitb446fca05b5b397473a71af0541138dc28f8f5e5 (patch)
tree3690f643f293ee0809d8c346fdad1524dacb45ea /sys/dev/ppc
parent9fb901914133e441f1b41cb33cbe60ae6c24a7cf (diff)
downloadFreeBSD-src-b446fca05b5b397473a71af0541138dc28f8f5e5.zip
FreeBSD-src-b446fca05b5b397473a71af0541138dc28f8f5e5.tar.gz
More appropriate fix to the id_irq read during probe
Diffstat (limited to 'sys/dev/ppc')
-rw-r--r--sys/dev/ppc/ppc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c
index ec85acc..49d3e33 100644
--- a/sys/dev/ppc/ppc.c
+++ b/sys/dev/ppc/ppc.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ppc.c,v 1.18 1999/02/14 12:03:35 nsouch Exp $
+ * $Id: ppc.c,v 1.19 1999/02/14 17:09:59 nsouch Exp $
*
*/
#include "ppc.h"
@@ -1724,8 +1724,8 @@ ppcprobe(struct isa_device *dvp)
/*
* XXX Try and detect if interrupts are working
*/
- if (!(dvp->id_flags & 0x20))
- ppc->ppc_irq = dvp->id_irq;
+ if (!(dvp->id_flags & 0x20) && dvp->id_irq)
+ ppc->ppc_irq = ffs(dvp->id_irq) - 1;
ppc->ppc_dmachan = dvp->id_drq;
OpenPOWER on IntegriCloud