From owner-freebsd-current@FreeBSD.ORG Tue Dec 2 13:18:17 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C3E916A4CE for ; Tue, 2 Dec 2003 13:18:17 -0800 (PST) Received: from mail7.speakeasy.net (mail7.speakeasy.net [216.254.0.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFAE544015 for ; Tue, 2 Dec 2003 13:18:13 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 29381 invoked from network); 2 Dec 2003 21:18:13 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 2 Dec 2003 21:18:13 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id hB2LI9Fn003929; Tue, 2 Dec 2003 16:18:10 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Tue, 02 Dec 2003 16:18:10 -0500 (EST) From: John Baldwin To: re@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: jeff@FreeBSD.org cc: current@FreeBSD.org Subject: mp_maxid madness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2003 21:18:17 -0000 The patch at http://www.FreeBSD.org/~jhb/patches/mp_maxid.patch should fix all users of mp_maxid to use the same semantics. Namely: 1) mp_maxid is a valid FreeBSD CPU ID in the range 0 to MAXCPU - 1. 2) For every CPU in the system, PCPU_GET(cpuid) <= mp_maxid -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/