From owner-freebsd-alpha Thu Dec 20 21:19:43 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 CECB937B41C for ; Thu, 20 Dec 2001 21:19:38 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id fBL5JVO77128; Fri, 21 Dec 2001 06:19:31 +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 fBL5K6tx087613; Fri, 21 Dec 2001 06:20:07 +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 fBL5K5W22393; Fri, 21 Dec 2001 06:20:06 +0100 (CET) Received: (from ticso@localhost) by cicely9.cicely.de (8.11.6/8.11.6) id fBL5J5S92614; Fri, 21 Dec 2001 06:19:05 +0100 (CET) (envelope-from ticso) Date: Fri, 21 Dec 2001 06:19:05 +0100 From: Bernd Walter To: Andrew Gallatin Cc: Daniel Eischen , freebsd-alpha@FreeBSD.ORG Subject: Re: Munging jmp_bufs on alpha Message-ID: <20011221051904.GA71395@cicely9.cicely.de> References: <3C21000F.994BD53D@vigrid.com> <15393.15450.563749.55393@grasshopper.cs.duke.edu> <20011220063713.GC67179@cicely9.cicely.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <20011220063713.GC67179@cicely9.cicely.de> 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 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline My first explanation was a bit wrong but nevertheless here are the patches for libc and Daniels testprogramm. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch Index: src/lib/libc/alpha/gen/_setjmp.S =================================================================== RCS file: /vol/freebsd-cvs/src/lib/libc/alpha/gen/_setjmp.S,v retrieving revision 1.7 diff -u -r1.7 _setjmp.S --- src/lib/libc/alpha/gen/_setjmp.S 24 Jan 2001 12:58:52 -0000 1.7 +++ src/lib/libc/alpha/gen/_setjmp.S 21 Dec 2001 05:11:50 -0000 @@ -96,6 +96,7 @@ beq t0, botch /* If the magic was bad, punt */ ldq ra, (2 * 8)(a0) /* sc_pc = return address */ + mov ra, t12 ldq s0, (( 9 + 4) * 8)(a0) /* saved bits of sc_regs */ ldq s1, ((10 + 4) * 8)(a0) ldq s2, ((11 + 4) * 8)(a0) --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch2 --- test_jmpbuf.c Fri Dec 21 06:15:18 2001 +++ test_jmpbuf.c.new Fri Dec 21 06:14:58 2001 @@ -16,7 +16,7 @@ #define SET_STACK_JB(jb, stk) (jb)[0]._jb[R_SP + 4] = (long)(stk) #define GET_STACK_JB(jb) ((unsigned long)((jb)[0]._jb[R_SP + 4])) #define SET_RETURN_ADDR_JB(jb, ra) do { \ - (jb)[0]._jb[2] = (unsigned long)(ra) + 8UL; \ + (jb)[0]._jb[2] = (unsigned long)(ra); \ (jb)[0]._jb[R_RA + 4] = (long)(ra); \ (jb)[0]._jb[R_T12 + 4] = (long)(ra); \ } while (0) --ikeVEW9yuYc//A+q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message