From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 7 04:50:15 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69FD816A4DA for ; Fri, 7 Jul 2006 04:50:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0FA843D49 for ; Fri, 7 Jul 2006 04:50:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k674oEn5052828 for ; Fri, 7 Jul 2006 04:50:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k674oEJA052823; Fri, 7 Jul 2006 04:50:14 GMT (envelope-from gnats) Resent-Date: Fri, 7 Jul 2006 04:50:14 GMT Resent-Message-Id: <200607070450.k674oEJA052823@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Javier Villavicencio Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 833C016A4DF for ; Fri, 7 Jul 2006 04:42:01 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 203F543D53 for ; Fri, 7 Jul 2006 04:42:00 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k674fxBE073371 for ; Fri, 7 Jul 2006 04:41:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k674fxaY073367; Fri, 7 Jul 2006 04:41:59 GMT (envelope-from nobody) Message-Id: <200607070441.k674fxaY073367@www.freebsd.org> Date: Fri, 7 Jul 2006 04:41:59 GMT From: Javier Villavicencio To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/99870: INTRCNT_COUNT in i386/intr_machdep.h (may be) wrongly defined X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 04:50:15 -0000 >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 >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 07 04:50:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Javier Villavicencio >Release: 6.1-RELEASE >Organization: >Environment: >Description: Web viewable at: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/include/intr_machdep.h?rev=1.7.2.3&content-type=text/x-cvsweb-markup 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) #else #define INTRCNT_COUNT (1 + NUM_IO_INTS * 2 + (1 + 7) * MAXCPU) #endif It seems that the #ifdef should be an #ifndef. >How-To-Repeat: 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) >Fix: -#ifdef SMP +#ifndef SMP >Release-Note: >Audit-Trail: >Unformatted: