From owner-freebsd-alpha Wed Dec 19 22:38:31 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id F303A37B419 for ; Wed, 19 Dec 2001 22:38:21 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id fBK6ank49225; Thu, 20 Dec 2001 07:36:49 +0100 (CET) (envelope-from ticso@cicely9.cicely.de) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id fBK6bPtx079612; Thu, 20 Dec 2001 07:37:27 +0100 (CET)?g (envelope-from ticso@cicely9.cicely.de) Received: from cicely9.cicely.de (cicely9.cicely.de [10.1.7.11]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id fBK6bOW20788; Thu, 20 Dec 2001 07:37:24 +0100 (CET) Received: (from ticso@localhost) by cicely9.cicely.de (8.11.6/8.11.6) id fBK6bEX68529; Thu, 20 Dec 2001 07:37:14 +0100 (CET) (envelope-from ticso) Date: Thu, 20 Dec 2001 07:37:14 +0100 From: Bernd Walter To: Andrew Gallatin Cc: Daniel Eischen , freebsd-alpha@FreeBSD.ORG Subject: Re: Munging jmp_bufs on alpha Message-ID: <20011220063713.GC67179@cicely9.cicely.de> References: <3C21000F.994BD53D@vigrid.com> <15393.15450.563749.55393@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15393.15450.563749.55393@grasshopper.cs.duke.edu> User-Agent: Mutt/1.3.24i X-Operating-System: FreeBSD cicely9.cicely.de 5.0-CURRENT alpha Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Dec 19, 2001 at 08:18:18PM -0500, Andrew Gallatin wrote: > > Daniel Eischen writes: > > Included is a sample program that includes the jmp_buf-munging > > macros that use to work and that no longer work. [ Drew, you > > out there? You got these to work before ;-) ] > > Unfortunately, I no longer have the time to track -current on alpha.. > > I do have an idea where the problem might lie -- The alpha longjmp > relies on calling sigreturn to switch stacks. I imagine quite a bit > has changed in regard to returning from signals in the face of SMPng & > KSEs.. The printf in scheduler is failing. That is because scheduler is called with t12 still set to the address from the library and therefor we get a wrong gp value. In the static compiled case t12 within _longjmp is the same as in scheduler so it doesn't matter. IMHO _setjmp and _longjmp must save/restore t12 too. I don't have the time to test until this evening. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message