Subject: Re: Need info on meaning of elements of jmp_buf!
To: None <>
From: ITOH Yasufumi <>
List: port-m68k
Date: 08/12/1998 18:51:19
In article <> writes:

> where can I find  more information about the different types of
> information stored in the array jmp_buf from setjmp.h? I need to know
> which field represents the stack pointer. Is there a description of this
> array? I couldn't find anything in the man pages nor in the header files

See the library source :-)

The first 7 longwords is a  struct sigcontext (see <m68k/signal.h>).

	+0	onstack
	+4	sigmask
	+8	a7
	+12	a6
	+16	ap (unused by setjmp)
	+20	pc
	+24	sr

The rest is saved registers.

	+28	d2-d7/a2-a5
ITOH, Yasufumi