From owner-freebsd-current Wed Nov 29 18:23:54 2000 Delivered-To: freebsd-current@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 1AA5737B401 for ; Wed, 29 Nov 2000 18:23:52 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id VAA10334; Wed, 29 Nov 2000 21:23:40 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.1/8.9.1) id eAU2NeM01457; Wed, 29 Nov 2000 21:23: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 Date: Wed, 29 Nov 2000 21:23:40 -0500 (EST) To: Bernd Walter Cc: Wilko Bulte , Mike Eldridge , freebsd-current@freebsd.org Subject: Re: Patch for current on LCA based alphas In-Reply-To: <20001130011503.A47460@cicely8.cicely.de> References: <20001125193430.A40717@cicely8.cicely.de> <20001127224321.F1846@freebie.demon.nl> <20001128014038.A44759@cicely8.cicely.de> <14885.23282.73569.898582@grasshopper.cs.duke.edu> <20001130011503.A47460@cicely8.cicely.de> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14885.47251.351690.423382@grasshopper.cs.duke.edu> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bernd Walter writes: > On Wed, Nov 29, 2000 at 02:47:54PM -0500, Andrew Gallatin wrote: > > > > Bernd Walter writes: > > > > > > trap entry = 0x2 (memory management fault) > > > a0 = 0xfffffbf1e0000018 > > > a1 = 0x1 > > > a2 = 0x0 > > > pc = 0xfffffc0000557a10 > > > ra = 0xfffffc000055791c > > > curproc = 0xfffffc000062f118 > > > pid = 0, comm = swapper > > > > Bernd, > > > > Note the faulting address. It is not a k0seg address. This means > > something went negative, most likely in the LCA_CFGOFF macro. Here's > > why.. > > What is k0seg? > How can I see that it's not one? Everything from 0xfffffc0000000000-0xfffffdffffffffff is in k0seg, so its easy to see from the first 6 hex digits. K0SEG is a direct map of physical addresses into kernel virtual address space. <...> > Just to be clear the values given to lca_read_config were: > b=0, s=20, f=0, reg=0, width=4 > That means b in LCA_CFGOFF is false and the second formular will be applied. > The first part is 1< this makes -1 for int - your theory seems to be right. > But are you shure that changing our variables to unsigned will help? > Don't we need to make '1' unsigned? I thought so at first too, but it was never unsigned and it worked until recently.. And the same fix fixes a nearly identical panic on another platform, so I'm betting this is it ;) <..> > I will test it tommorow. Thanks! Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message