diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-06-20 20:47:35 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-06-20 20:47:35 +0000 |
commit | 23add83fe1b148cac9a33a17ab9e74645f068167 (patch) | |
tree | 08fd95ba9601630e8e94d079f348773e6c08ce14 /sys/arch | |
parent | 4f93eac49ec225f6770beaef42c320c99a8b1619 (diff) |
Do not hardcode imask[] size when intializing it.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mips64/mips64/interrupt.c | 4 | ||||
-rw-r--r-- | sys/arch/sgi/localbus/macebus.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mips64/mips64/interrupt.c b/sys/arch/mips64/mips64/interrupt.c index 4b998b155e1..6380a681ec2 100644 --- a/sys/arch/mips64/mips64/interrupt.c +++ b/sys/arch/mips64/mips64/interrupt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interrupt.c,v 1.29 2007/06/20 16:50:39 miod Exp $ */ +/* $OpenBSD: interrupt.c,v 1.30 2007/06/20 20:47:33 miod Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -416,7 +416,7 @@ generic_intr_makemasks() } /* Then figure out which IRQs use each level. */ - for (level = 0; level < 5; level++) { + for (level = IPL_NONE; level < NIPLS; level++) { register int irqs = 0; for (irq = 0; irq < INTMASKSIZE; irq++) if (intrlevel[irq] & (1 << level)) diff --git a/sys/arch/sgi/localbus/macebus.c b/sys/arch/sgi/localbus/macebus.c index ca1f67e06f7..93e50b71b8e 100644 --- a/sys/arch/sgi/localbus/macebus.c +++ b/sys/arch/sgi/localbus/macebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macebus.c,v 1.23 2007/06/20 16:50:43 miod Exp $ */ +/* $OpenBSD: macebus.c,v 1.24 2007/06/20 20:47:34 miod Exp $ */ /* * Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se) @@ -549,7 +549,7 @@ macebus_intr_makemasks(void) } /* Then figure out which IRQs use each level. */ - for (level = 0; level < 5; level++) { + for (level = IPL_NONE; level < NIPLS; level++) { int irqs = 0; for (irq = 0; irq < INTMASKSIZE; irq++) if (intrlevel[irq] & (1 << level)) |