www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/12/13:49:51

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Still problems with protected_mode_int
Date: 12 Jan 2000 16:32:37 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 20
Message-ID: <85iab5$eu3$1@antares.lu.erisoft.se>
References: <387C95C6 DOT B2FA8951 AT bluewin DOT de>
NNTP-Posting-Host: spica-144.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Erik Rull (erik_rull AT bluewin DOT de) wrote:
: Hi,

: I've tried your solution with _my_cs(), but it still doesn't do what I
: want...
: In plain DOS, the timer_handler() is not called. I don't get the output
: of printf().
: When I run it from a DOS Box in W95, it works.
: Where could the problem be??

You need to lock the code that is called in the interrupt
handler. Additionally you shouldn't call functions that might call
into DOZE (printf) because DOZE isn't reentrant.

Read the relevant sections in the FAQ.


Right,

							MartinS

- Raw text -


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