Mail Archives: djgpp-workers/1998/07/27/11:17:54
DJ Delorie <dj AT delorie DOT com> wrote:
> > Will longjmp work across different selectors? (The child has a different
> > CS/DS/SS, right?)
>
> longjmp restores these registers:
>
> eax ebx ecx edx esi edi ebp esp eip flags cs ds es fs gs ss
I don't have the code here but I think EAX have a special work here because
is the setjmp return value.
I'm using longjmps with some tricks, most of the time filling the jmp_buf
manually.
Additionally longjmp restores a flag about the exceptions state, what's that
DJ? I know is a pointer that normally is 0, is that to longjmp from
exceptions and then be able to restore some state information needed by the
djgpp exception handling routines?
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -