From owner-freebsd-alpha@FreeBSD.ORG Sat Mar 29 10:27:46 2003 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E82B737B401 for ; Sat, 29 Mar 2003 10:27:46 -0800 (PST) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29A7B43FD7 for ; Sat, 29 Mar 2003 10:27:46 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.8/8.12.8) with ESMTP id h2TIRjRv017210 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sat, 29 Mar 2003 13:27:45 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id h2TIReb24060; Sat, 29 Mar 2003 13:27:40 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16005.58780.487088.88619@grasshopper.cs.duke.edu> Date: Sat, 29 Mar 2003 13:27:40 -0500 (EST) To: freebsd-alpha@freebsd.org X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Subject: Fix for osf1 emulation in 5.0 X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2003 18:27:50 -0000 Hi, Some people have been having problems like the following with OSF/1 emulation on 5.0-RELEASE and 5.0-current: exception system: exiting due to multiple internal errors: out of memory trying to allocate exception system resources handler returned invalid disposition It turns out that this is caused by a subtle difference in SMP and UP kernels. Only SMP kernels are affected by this problem. If you have a single CPU system, the easist fix is to remove the line 'options SMP' from your kernel config file, rebuild your kernel, install it, and reboot. If you have an SMP system, please apply the appended patch, rebuild your kernel, install it, and reboot. Another option would be to upgrade to 5.0-current, where this problem has just been fixed (by the application of the patch below). Cheers, Drew Index: alpha/include/param.h =================================================================== RCS file: /home/ncvs/src/sys/alpha/include/param.h,v retrieving revision 1.29 diff -u -r1.29 param.h --- alpha/include/param.h 17 Sep 2002 01:48:54 -0000 1.29 +++ alpha/include/param.h 21 Mar 2003 20:15:47 -0000 @@ -91,8 +91,9 @@ #include #include +#define MAXSMPCPU 8 #ifdef SMP -#define MAXCPU 32 +#define MAXCPU MAXSMPCPU #else #define MAXCPU 1 #endif Index: alpha/include/pmap.h =================================================================== RCS file: /home/ncvs/src/sys/alpha/include/pmap.h,v retrieving revision 1.21 diff -u -r1.21 pmap.h --- alpha/include/pmap.h 16 Mar 2003 04:16:02 -0000 1.21 +++ alpha/include/pmap.h 21 Mar 2003 20:15:05 -0000 @@ -177,7 +177,7 @@ struct { u_int32_t asn:ASN_BITS; /* address space number */ u_int32_t gen:ASNGEN_BITS; /* generation number */ - } pm_asn[MAXCPU]; + } pm_asn[MAXSMPCPU]; struct pmap_statistics pm_stats; /* pmap statistics */ struct vm_page *pm_ptphint; /* pmap ptp hint */ LIST_ENTRY(pmap) pm_list; /* list of all pmaps. */