www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/07/27/11:17:54

Message-Id: <m0z0p1D-000S4SC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: djgpp-workers AT delorie DOT com, eliz AT is DOT elta DOT co DOT il
Date: Mon, 27 Jul 1998 12:26:38 +0000
MIME-Version: 1.0
Subject: Re: Pipes
In-reply-to: <199807271439.KAA02462@delorie.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980727173047 DOT 779L-100000 AT is> (message from Eli Zaretskii on Mon, 27 Jul 1998 17:35:31 +0300 (IDT))

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019