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>
This commit is contained in:
nsouch 1999-02-14 17:09:59 +00:00
parent e0c0c55d0f
commit 255fe1b618
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;