Thread support in 0.10 on OpenBSD

Tank kaffe@rufus.w3.org
Wed Apr 1 04:29:39 PST 1998


>>>>> "Simon" == Simon J Gerraty <sjg@quick.com.au> writes:

    Simon> Have a look at /usr/src/lib/libc/arch/i386/gen/setjmp.S or
    Simon> sigsetjmp.S depending on what is being used. (That's on
    Simon> NetBSD).  On NetBSD/i386 offset 2 is the stack ptr (esp) as
    Simon> far as I can tell.

Simon: THANK YOU!!! I had looked at the setjmp.S file, but it looked
like it indicated an offset of 4 (which is the default).  I tried it
with the offset at 2 and VOILA! It works great.

How did you determine that the offset was 2??  looking at setjmp.S, I
see:
        movl    8(%edx),%esp

The offsets range up to 20, and I know the entire setjmp buffer
(long)10, so I figured each offset equated to .5 long = offset 4.

If you could explain this to me, I'd appreciate it, as I seem to be
experiencing a distinct numbness of the cranium in regards to this situation.

Tim: Can we get this merged into the distribution as a setting for 
OpenBSD(i386)??


Thanks to everyone for your responses.

--
Tank (SPM) 	"The Big Bad Wolf"
		<tank@pencom.com>
		<tank@iroquois.mcla.org>


More information about the kaffe mailing list