summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-02-08 00:05:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-02-08 00:05:10 +0000
commit7c9356b3491d4c1b1f7771211d089bdc7b11831b (patch)
tree519f3060b6f4ae49841f0f0ead346dff1f8065a7
parent29536adc8571e7b1893281289f6bd0f4dbe63e65 (diff)
Because of BROKEN_PROM braindamage we need to allow an interupt
initialized (but not registered) as IST_LEVEL be assigned IST_EDGE.
-rw-r--r--sys/arch/alpha/dev/shared_intr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/alpha/dev/shared_intr.c b/sys/arch/alpha/dev/shared_intr.c
index 5d3302bc491..ff089f7a24c 100644
--- a/sys/arch/alpha/dev/shared_intr.c
+++ b/sys/arch/alpha/dev/shared_intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shared_intr.c,v 1.5 1998/12/31 09:17:58 deraadt Exp $ */
+/* $OpenBSD: shared_intr.c,v 1.6 1999/02/08 00:05:09 millert Exp $ */
/* $NetBSD: shared_intr.c,v 1.1 1996/11/17 02:03:08 cgd Exp $ */
/*
@@ -127,17 +127,17 @@ alpha_shared_intr_check(intr, num, type)
unsigned int num;
int type;
{
- if (intr[num].intr_sharetype == IST_UNUSABLE)
- return (0);
switch (intr[num].intr_sharetype) {
+ case IST_UNUSABLE:
+ return (0);
+ break;
case IST_NONE:
return (2);
break;
case IST_LEVEL:
- if (type != intr[num].intr_sharetype)
- return (0);
- return (1);
+ if (type == intr[num].intr_sharetype)
+ break;
case IST_EDGE:
case IST_PULSE:
if ((type != IST_NONE) && (intr[num].intr_q.tqh_first != NULL))