setjmp/longjmp on mips/ultrix4
Godmar Back
gback at cs.utah.edu
Mon Oct 19 10:35:45 PDT 1998
>
> Godmar Back wrote:
> >
> > Sounds like the Sparc/Linux problem where longjmp tests that you don't
> > use it for "illicit" purposes. You'll probably have to end up writing
> > your own setjmp/longjmp/context switch routine.
>
> I had to do this for a version of Apache we were playing with - coz SCO
> also stops you from pulling the wool over its eyes - I assume you are
> doing a setjmp and then using a signal to sneak onto a different stack?
No, we don't even do the signal thing to get on another stack.
We simply manipulate the jmpbuf to change the sp (and fp, if needed)
and then longjmp to it. That works on most architectures.
- Godmar
More information about the kaffe
mailing list