From 2e3726e915ae695604a012b2f1e6e60ac3754ceb Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 31 Dec 1998 09:17:59 +0000 Subject: semantic change: prefer unshared intr, settle for level shared. this will still fail in some cases --- sys/dev/isa/i82365_isa.c | 4 ++-- sys/dev/isa/i82365_isasubr.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/isa/i82365_isa.c b/sys/dev/isa/i82365_isa.c index 1bd07bead49..5275da4d448 100644 --- a/sys/dev/isa/i82365_isa.c +++ b/sys/dev/isa/i82365_isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i82365_isa.c,v 1.2 1998/12/27 00:27:18 deraadt Exp $ */ +/* $OpenBSD: i82365_isa.c,v 1.3 1998/12/31 09:17:43 deraadt Exp $ */ /* $NetBSD: i82365_isa.c,v 1.11 1998/06/09 07:25:00 thorpej Exp $ */ /* @@ -212,7 +212,7 @@ pcic_isa_attach(parent, self, aux) if (isa_intr_check(ic, pcic_isa_intr_list[i], ist) == 2) goto found; for (i = 0; i < npcic_isa_intr_list; i++) - if (isa_intr_check(ic, pcic_isa_intr_list[i], ist)) + if (isa_intr_check(ic, pcic_isa_intr_list[i], ist) == 1) goto found; printf("\n%s: can't allocate interrupt\n", sc->dev.dv_xname); return; diff --git a/sys/dev/isa/i82365_isasubr.c b/sys/dev/isa/i82365_isasubr.c index a4c853500ca..5c335864e97 100644 --- a/sys/dev/isa/i82365_isasubr.c +++ b/sys/dev/isa/i82365_isasubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i82365_isasubr.c,v 1.3 1998/12/27 00:27:18 deraadt Exp $ */ +/* $OpenBSD: i82365_isasubr.c,v 1.4 1998/12/31 09:17:44 deraadt Exp $ */ /* $NetBSD: i82365_isasubr.c,v 1.1 1998/06/07 18:28:31 sommerfe Exp $ */ /* @@ -226,7 +226,7 @@ pcic_isa_chip_intr_establish(pch, pf, ipl, fct, arg) if (isa_intr_check(ic, pcic_isa_intr_list[i], ist) == 2) goto found; for (i = 0; i < npcic_isa_intr_list; i++) - if (isa_intr_check(ic, pcic_isa_intr_list[i], ist)) + if (isa_intr_check(ic, pcic_isa_intr_list[i], ist) == 1) goto found; return (NULL); -- cgit v1.2.3