summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppc/ppc.c
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>1999-02-14 17:09:59 +0000
committernsouch <nsouch@FreeBSD.org>1999-02-14 17:09:59 +0000
commit255fe1b6182d45e946b1e03bf33c302904932b72 (patch)
tree3e3abb7a4bcf26b50ed04ac2de70b0aa58c48217 /sys/dev/ppc/ppc.c
parente0c0c55d0fa296308857c59218bce9c9307588f9 (diff)
downloadFreeBSD-src-255fe1b6182d45e946b1e03bf33c302904932b72.zip
FreeBSD-src-255fe1b6182d45e946b1e03bf33c302904932b72.tar.gz
The way the interrupt id was calculated was wrong and the lpt
driver was thinking irq was enabled although it wasn't. This case was particular to a no-interrupt static configuration. Reported by: "Norman C. Rice" <nrice@emu.sourcee.com>
Diffstat (limited to 'sys/dev/ppc/ppc.c')
-rw-r--r--sys/dev/ppc/ppc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c
index 59f55ca..ec85acc 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.17 1999/01/31 11:52:04 nsouch Exp $
+ * $Id: ppc.c,v 1.18 1999/02/14 12:03:35 nsouch Exp $
*
*/
#include "ppc.h"
@@ -1725,7 +1725,7 @@ ppcprobe(struct isa_device *dvp)
* XXX Try and detect if interrupts are working
*/
if (!(dvp->id_flags & 0x20))
- ppc->ppc_irq = ffs(dvp->id_irq) - 1;
+ ppc->ppc_irq = dvp->id_irq;
ppc->ppc_dmachan = dvp->id_drq;
OpenPOWER on IntegriCloud