delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/09/06:06:00

Date: Wed, 9 Feb 2000 09:02:48 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: ayoung <ayoung AT pacific DOT net DOT hk>
cc: djgpp AT delorie DOT com
Subject: Re: Threads
In-Reply-To: <38A123D5.14EEA3A6@pacific.net.hk>
Message-ID: <Pine.SUN.3.91.1000209090153.9816H-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 8 Feb 2000, ayoung wrote:

> Thanks for this little insight as I over looking the importance of
> the int(0x31) call within __djgpp_hw_exception.

You mean the call to reset the DS limit?

> The result of all this being that no existing DJGPP thread library could be
> called real time

Correct.

> in fact there is the possibility of losing alarms
> etc if there are high delays within DPMI and/or DOS services.

Correct again.

> Another option is to directly install
> protect and real mode interrupt traps (i.e. not via DMPI) removing the
> DMPI interrupt redirection **.

This is extremely dangerous, unless you are willing to toss DPMI
completely and do everything on your own.  DPMI explicitly forbids
switching stacks from a hardware interrupt handler.

> Q:     How does the debugger interface with the application, and iIs there a
>         document reference available ?   I ask as any rework of the interrupt
>         construction will, most likely, effect this interface.

The DJGPP debugger support is only scarcely documented.  What docs
there is, you can see it in libc.info: from the command line type
"info libc functional debugging" and read there.  Anything beyond
that, you will have to ask here.

In a nutshell, the debug support works by hooking the debug exception,
and longjmp'ing between the debuggee and the debugger's own code.
It is very similar to how the FP emulation works in DJGPP.

- Raw text -


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