From owner-cvs-all@FreeBSD.ORG Sat Mar 29 10:22:30 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0D6537B401; Sat, 29 Mar 2003 10:22:30 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 523C043FBF; Sat, 29 Mar 2003 10:22:30 -0800 (PST) (envelope-from gallatin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h2TIMU0U090723; Sat, 29 Mar 2003 10:22:30 -0800 (PST) (envelope-from gallatin@repoman.freebsd.org) Received: (from gallatin@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h2TIMUiq090718; Sat, 29 Mar 2003 10:22:30 -0800 (PST) Message-Id: <200303291822.h2TIMUiq090718@repoman.freebsd.org> From: Andrew Gallatin Date: Sat, 29 Mar 2003 10:22:30 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/alpha/include param.h pmap.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2003 18:22:32 -0000 gallatin 2003/03/29 10:22:30 PST FreeBSD src repository Modified files: sys/alpha/include param.h pmap.h Log: Fix the osf1 abi module on SMP systems by making the size of a struct pmap be the same on both SMP and UP kernels. It turns out that the size of a struct pmap is much larger on alpha SMP systems due to the number of pm_asn's being dependant on MAX_CPU. Since modules are supposed to be SMP agnostic, this has the affect of moving around the "interesting bits" of the vmspace (daddr, dsize) that the osf1 module wants to frob. So the module ends up scribbling in a pmap struct, and the user either sees a panic, or an application failure. While here, I've also shrunk MAXCPU to 8 now that it affects the size of pmap structs on UP systesm. This should be plenty, as I'm unware of any hardware we currently run in which supports more than 8 CPUs. Revision Changes Path 1.30 +2 -1 src/sys/alpha/include/param.h 1.22 +1 -1 src/sys/alpha/include/pmap.h