summaryrefslogtreecommitdiff
path: root/sys/arch/sun3
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2000-08-28 22:05:27 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2000-08-28 22:05:27 +0000
commit4e93bdeeb6e64894208b5e7dfa613dfc61607989 (patch)
treec6cd676274311d0c4912344ac292c9fa027a8a34 /sys/arch/sun3
parentdb426c11ee158c5348fbc7da8fd92283d0d28b15 (diff)
Less magic numbers
Diffstat (limited to 'sys/arch/sun3')
-rw-r--r--sys/arch/sun3/sun3/isr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sun3/sun3/isr.c b/sys/arch/sun3/sun3/isr.c
index c052f1697f3..9208fd32174 100644
--- a/sys/arch/sun3/sun3/isr.c
+++ b/sys/arch/sun3/sun3/isr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isr.c,v 1.10 1999/12/08 06:50:17 itojun Exp $ */
+/* $OpenBSD: isr.c,v 1.11 2000/08/28 22:05:26 miod Exp $ */
/* $NetBSD: isr.c,v 1.25 1996/11/20 18:57:32 gwr Exp $ */
/*-
@@ -177,7 +177,7 @@ isr_autovec(evec)
vec = (evec & 0xFFF) >> 2;
if ((vec < AUTOVEC_BASE) || (vec >= (AUTOVEC_BASE+8)))
panic("isr_autovec: bad vec");
- ipl = vec - 0x18;
+ ipl = vec - AUTOVEC_BASE;
n = intrcnt[ipl];
intrcnt[ipl] = n+1;