delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/21/03:06:33

Date: Mon, 21 Dec 1998 10:03:02 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Agent Drek <drek AT monsterbymistake DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: cpu eater
In-Reply-To: <Pine.SGI.3.96.981220125439.21998B-100000@bunny>
Message-ID: <Pine.SUN.3.91.981221100247.5771B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sun, 20 Dec 1998, Agent Drek wrote:

> |> I am just confused because the same code works great on my SGI.
> |
> |It also works great on my NT and on Windows 9X as well.
> |
> 
> I will try a different NT box.

There is one more possibility that I overlooked, until now.

Are you using the stock C library released with DJGPP v2.01?  If so,
upgrade to version 2.02 and try again.  The internal workings of the
__dpmi_yield function were changed in v2.02: it now issues its call
via __dpmi_int, rather than emitting an INT 2Fh instruction directly.

This change was meant to prevent certain versions of Windows 9X to
wedge the DOS box after a __dpmi_yield call in nested DJGPP programs,
but it could be also the reason for the difference in the behavior on
the NT.

I used the revised version of __dpmi_yield in my testing.

- Raw text -


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