misc/99870: INTRCNT_COUNT in i386/intr_machdep.h (may be) wrongly defined

Javier Villavicencio javier_v at ciudad.com.ar
Fri Jul 7 04:50:15 UTC 2006

>Number:         99870
>Category:       misc
>Synopsis:       INTRCNT_COUNT in i386/intr_machdep.h (may be) wrongly defined
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 07 04:50:14 GMT 2006
>Originator:     Javier Villavicencio
>Release:        6.1-RELEASE
Web viewable at:

By my interpretation of the following comments before the definition:

 * - 1 ??? dummy counter.
 * - 2 counters for each I/O interrupt.
 * - 1 counter for each CPU for lapic timer.
 * - 7 counters for each CPU for IPI counters for SMP.
#ifdef SMP
#define	INTRCNT_COUNT	(1 + NUM_IO_INTS * 2 + 1)
#define	INTRCNT_COUNT	(1 + NUM_IO_INTS * 2 + (1 + 7) * MAXCPU)

It seems that the #ifdef should be an #ifndef.
Look at the code? The GENERIC kernel compiles and works fine, I've found this just looking for some "custom" environment (that's why no uname -a is provided)
-#ifdef SMP
+#ifndef SMP

More information about the freebsd-bugs mailing list