summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-06-08 17:15:31 +0000
committerache <ache@FreeBSD.org>1997-06-08 17:15:31 +0000
commitc91025daa9ed23fc75d59176eacb0d27feba98ef (patch)
tree2196119b37c0f4f9df4932ec52960b81f33481c0 /sys/kern/kern_intr.c
parentd219e7f0ddb30cdd388fba5371f5a20504323f1d (diff)
downloadFreeBSD-src-c91025daa9ed23fc75d59176eacb0d27feba98ef.zip
FreeBSD-src-c91025daa9ed23fc75d59176eacb0d27feba98ef.tar.gz
Add safety check in case "conflicts" keyword specified more times than
needed
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 4097ba2..afce557 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: kern_intr.c,v 1.5 1997/06/02 08:19:06 dfr Exp $
+ * $Id: kern_intr.c,v 1.6 1997/06/02 10:46:28 dfr Exp $
*
*/
@@ -88,6 +88,12 @@ intr_mux(void *arg)
/* XXX better use NHWI from <machine/ipl.h> for array size ??? */
static intrec *intreclist_head[ICU_LEN];
+int
+intr_registered(int irq)
+{
+ return (intreclist_head[irq] != NULL);
+}
+
static intrec*
find_idesc(unsigned *maskptr, int irq)
{
OpenPOWER on IntegriCloud