summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/mips64/mips64/interrupt.c4
-rw-r--r--sys/arch/sgi/localbus/macebus.c4
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))