From owner-freebsd-alpha Fri Jan 4 9:20:40 2002 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 3FAAE37B41A for ; Fri, 4 Jan 2002 09:20:32 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id g04HKSY60390; Fri, 4 Jan 2002 18:20:28 +0100 (CET) (envelope-from ticso@cicely8.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 g04HL9tx059768; Fri, 4 Jan 2002 18:21:09 +0100 (CET)?g (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id g04HL8W16054; Fri, 4 Jan 2002 18:21:09 +0100 (CET) Received: (from ticso@localhost) by cicely8.cicely.de (8.11.6/8.11.6) id g04HL8h09473; Fri, 4 Jan 2002 18:21:08 +0100 (CET) (envelope-from ticso) Date: Fri, 4 Jan 2002 18:21:08 +0100 From: Bernd Walter To: Daniel Eischen Cc: alpha@FreeBSD.ORG Subject: Re: {get,set,make,swap}context for alpha Message-ID: <20020104182107.D8703@cicely8.cicely.de> References: <20020104143622.A8703@cicely8.cicely.de> <20020104174613.C8703@cicely8.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020104174613.C8703@cicely8.cicely.de> User-Agent: Mutt/1.3.23i X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 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 Fri, Jan 04, 2002 at 05:46:13PM +0100, Bernd Walter wrote: > What I found so far with the core dump is that proc3 is called with a > bogus t12 value. > I still have to search why. --- _ctx_start.S.orig Fri Jan 4 18:15:18 2002 +++ _ctx_start.S Fri Jan 4 18:13:26 2002 @@ -40,6 +40,7 @@ .set noreorder LEAF(_ctx_start,0) LDGP(pv) + mov s0, t12 jsr ra, (s0) /* call start routine; args already set */ mov s1, a0 /* load A0 (arg 1) with pointer to ucontext */ CALL(_ctx_done) /* call context completion routine */ ticso@cicely9# ./test_context Send a few SIGUSR1's to pid 65418 Main: setting context to myself. Main: returned from setcontext. Proc3 called with arguments (1) Proc3: working... Proc3: working... Proc3: working... Proc3: working... Proc3: working... Proc3: returned from getcontext, count 1 Proc3: working... Proc3: working... Proc3: working... Proc3: working... Proc3: done. Leaving main context. Proc1 called with arguments (2, 10) Proc1: working... Proc1: working... Proc1: working... Proc1: working... Proc1: working... Proc2 called with arguments (6, 5, 4, 3, 2, 1) Proc2: working... Proc2: working... Proc2: working... Proc2: working... Proc2: working... Proc1: return from switch. Proc1: working... Proc1: working... Proc1: working... Proc1: working... Proc2: return from switch. Proc2: working... Proc2: working... Proc2: working... Proc2: working... Main context returned. ticso@cicely9# uname -a FreeBSD cicely9.cicely.de 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Thu Jan 3 13:31:07 CET 2002 root@:/var/d7/FreeBSD-2002-01-02/src/sys/alpha/compile/CICELY9 alpha Signaling does not work, yet: ticso@cicely9# ./test_context Send a few SIGUSR1's to pid 65430 Main: setting context to myself. Main: returned from setcontext. Proc3 called with arguments (1) Proc3: working... Proc3: working... Proc3: working... Proc3: working... Proc3: working... Proc3: returned from getcontext, count 1 Got signal 30, uc_rev 0x0 Assertion failed: (setcontext(ucp) == 0), function sighandler, file test_context.c, line 77. Abort (core dumped) Exit 134 -- 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