PERFORCE change 136932 for review
Randall R. Stewart
rrs at FreeBSD.org
Wed Mar 5 18:08:33 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=136932
Change 136932 by rrs at rrs-mips2-jnpr on 2008/03/05 18:08:24
NHARD is set to 6 so we must not
allow 6 in the irq level.
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/mips/intr_machdep.c#7 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/mips/intr_machdep.c#7 (text+ko) ====
@@ -62,7 +62,10 @@
int error;
printf("Establish HARD IRQ %d: filt %p handler %p arg %p\n", irq, filt, handler, arg);
- if (irq < 0 || irq > NHARD_IRQS)
+ /*
+ * We have 6 levels, but thats 0 - 5 (not including 6)
+ */
+ if (irq < 0 || irq >= NHARD_IRQS)
panic("%s called for unknown hard intr %d", __func__, irq);
event = hardintr_events[irq];
More information about the p4-projects
mailing list