Subject: Re: Need info on meaning of elements of jmp_buf!
To: None <port-m68k@netbsd.org>
From: ITOH Yasufumi <yasufu-i@is.aist-nara.ac.jp>
List: port-m68k
Date: 08/12/1998 18:51:19
In article <Pine.LNX.3.96.980812094456.1091A-100000@asta4.rz.fh-ulm.de>
reiner@asta4.rz.fh-ulm.de 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 :-)
lib/libc/arch/m68k/gen/_setjmp.S
lib/libc/arch/m68k/gen/setjmp.S
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