summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-27 22:42:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-27 22:42:48 +0000
commitd5dc99e7d17ad41e61ca93d506d30a6335610e17 (patch)
tree620fd55433f9ad67ed32b76d97d4c9e2de7bb54f /sys/arch/i386
parentb370820787c50feefad6c3a1654ae937162f8540 (diff)
have pmsprobe() attempt interrupt establishment; fail probe if interrupt in use
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/isa/pms.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/i386/isa/pms.c b/sys/arch/i386/isa/pms.c
index 1b7b3fa013e..c67515fb5c3 100644
--- a/sys/arch/i386/isa/pms.c
+++ b/sys/arch/i386/isa/pms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pms.c,v 1.18 1998/04/01 20:21:00 matthieu Exp $ */
+/* $OpenBSD: pms.c,v 1.19 1998/06/27 22:42:47 deraadt Exp $ */
/* $NetBSD: pms.c,v 1.29 1996/05/12 23:12:42 mycroft Exp $ */
/*-
@@ -186,6 +186,7 @@ pmsprobe(parent, match, aux)
void *match, *aux;
{
struct cfdata *cf = match;
+ void *ih;
u_char x;
/*
@@ -210,6 +211,12 @@ pmsprobe(parent, match, aux)
if (x & 0x04)
return 0;
+ ih = isa_intr_establish(aux, cf->cf_loc[0],
+ IST_EDGE, IPL_TTY, pmsintr, NULL, pms_cd.cd_name);
+ if (ih == NULL)
+ return 0;
+
+ isa_intr_disestablish(aux, ih);
return 1;
}