From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,420ff1882c0fe737,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-01-06 07:56:51 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!gatech!cs.utk.edu!not-for-mail From: hzhou@cs.utk.edu (Honbo Zhou) Newsgroups: comp.sys.dec Subject: Thread, how to write own setjmp/longjmp Date: 6 Jan 1995 10:56:51 -0500 Organization: CS Department, University of Tennessee, Knoxville Distribution: world Message-ID: <3ejp83INN1ui@duncan.cs.utk.edu> NNTP-Posting-Host: duncan.cs.utk.edu I am porting a thread package to DEC ALPHA Workstation in which I need to write my own setjmp/longjmp to save the thread context. The original setjmp/longjmp is not good for this purpose since it involves some safety checks. Could anybody out there tell me the approach to start? BTW, the stack pointer on other machines normally is stored in jmp_buf[0] to jmp_buf[3], but in the system I use (OSF1 1.2 10 alpha), it is stored in jmp_buf[35]. What's the deal here? Thanks a lot.