Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Mar 2008 18:08:32 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 136932 for review
Message-ID:  <200803051808.m25I8WRc081540@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=136932

Change 136932 by rrs@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];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803051808.m25I8WRc081540>