Date: Sun, 9 Nov 1997 16:50:08 +0200 (IST) From: Eli Zaretskii To: Cheng-Chang Wu cc: djgpp AT delorie DOT com Subject: Re: Can I do printf in callback handler (interrupt handler)? In-Reply-To: <3465C25A.7C1CBABF@ping.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 9 Nov 1997, Cheng-Chang Wu wrote: > But it causes Page fault > when it executes printf(). Why is printf() so special? Because `printf' calls DOS. You cannot call DOS functions from an RMCB because it is VERY dangerous. > How can I get around the problem? Call `cprintf' instead. In general, don't call anything that might call DOS.