diff options
author | nsouch <nsouch@FreeBSD.org> | 1999-02-14 22:02:47 +0000 |
---|---|---|
committer | nsouch <nsouch@FreeBSD.org> | 1999-02-14 22:02:47 +0000 |
commit | b446fca05b5b397473a71af0541138dc28f8f5e5 (patch) | |
tree | 3690f643f293ee0809d8c346fdad1524dacb45ea /sys/i386/isa/ppc.c | |
parent | 9fb901914133e441f1b41cb33cbe60ae6c24a7cf (diff) | |
download | FreeBSD-src-b446fca05b5b397473a71af0541138dc28f8f5e5.zip FreeBSD-src-b446fca05b5b397473a71af0541138dc28f8f5e5.tar.gz |
More appropriate fix to the id_irq read during probe
Diffstat (limited to 'sys/i386/isa/ppc.c')
-rw-r--r-- | sys/i386/isa/ppc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/ppc.c b/sys/i386/isa/ppc.c index ec85acc..49d3e33 100644 --- a/sys/i386/isa/ppc.c +++ b/sys/i386/isa/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; |