delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/02/21:33:05

Message-ID: <38E7E9C9.56474257@videotron.ca>
From: Trancelucid <trancelucid AT videotron DOT ca>
X-Mailer: Mozilla 4.7 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: keyboard interrupt
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000402094520 DOT 9367O-100000 AT is>
Lines: 34
Date: Sun, 02 Apr 2000 20:46:01 -0400
NNTP-Posting-Host: 24.201.20.12
X-Complaints-To: abuse AT videotron DOT net
X-Trace: wagner.videotron.net 954722267 24.201.20.12 (Sun, 02 Apr 2000 20:37:47 EDT)
NNTP-Posting-Date: Sun, 02 Apr 2000 20:37:47 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> On Mon, 27 Mar 2000, Jonathan Meunier wrote:
> 
> > DJGPP doesn't allow reentrant interrupts..
> 
> It doesn't?  Could you explain why?  I'm not aware of any such
> limitation for hardware interrupt handlers in DJGPP.

Err, not DJGPP itself, but rather handlers written in C.. DJGPP function
_go32_dpmi_chain_protected_mode_interrupt_vector chains the original
handler automatically. Is there a way to call the original handler only
when I want it to? What I want to do is to handle the keyboard interrupt
(faster for games), but when I want to (ie: with a flag), I'd like the
DOS keyboard handler to handle it instead. Is this possible to do this
in C, or do I have to do it all in assembly?

> > My question is, where can I find information on those wrappers? Like,
> > what they do, and what to put in them?
> 
> Did you try the library docs?  "info libc alpha _go32_dpmi_set_prot"
> works for me.
> 
> If you need more info than the library docs offers, I suggest reading
> section 18.9 of the DJGPP FAQ, and if that's still not enough,
> download the library sources distribution (djlsr203.zip) and look
> there.

Read all of the above except for the sources, but it doesn't go in
details.. So I'll go download the sources now :)

Thanks,
	.(Trancelucid).
	  .  Jaune  .

- Raw text -


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