Date: Wed, 18 Sep 2002 21:16:29 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Gisle Vanem Message-Id: <3405-Wed18Sep2002211628+0300-eliz@is.elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (message from Gisle Vanem on Sat, 14 Sep 2002 23:05:38 +0200 (MET DST)) Subject: Re: Detecting debugger References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Sat, 14 Sep 2002 23:05:38 +0200 (MET DST) > From: Gisle Vanem > > That worked, thanks. I don't quite see why this should work. Seems the > real-mode timer-handler isn't called to update the timer-tick unless > I do call __dpmi_yield(). If this is under plain DOS (no Windows) using CWSDPMI, then what you see is due to a subtle misfeature in the way CWSDPMI implements the Int 31h interface. It's a long story, but the bottom line is that under some circumstances interrupts become disabled. Insert an __asm__("sti") into the loop, and I believe the problem will go away.