www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/22/18:35:14

From: root AT zoltar DOT gatchaman DOT fr (Pierre MAZIERE)
Newsgroups: comp.os.msdos.djgpp
Subject: Getting over an interrupt
Date: 22 Oct 1998 23:33:43 GMT
Organization: Anonymous Biochemists
Lines: 29
Message-ID: <70ofcn$8r$1@zoltar.gatchaman.fr>
NNTP-Posting-Host: ppp-102-121.villette.club-internet.fr
X-Trace: front6.grolier.fr 909098972 5665 194.158.102.121 (22 Oct 1998 23:29:32 GMT)
NNTP-Posting-Date: 22 Oct 1998 23:29:32 GMT
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

Hi guys !
enjoy cause this is my first real UseNet message :)
Hard work until this result !

Well let's go to the point!

I make a Keyboard interrupt which works fine when I use 
_go32_dpmi_get_protected_mode_interrupt_vector(9,&oldint);
_go32_dmpi_chain_protected_mode_interrupt_vector(9,&newint);

But what I want is getting over the old interrupt, i.e. never pass 
keyboard datas to the bios interrupt (avoiding rebooting when ctrl alt sup)!

So I used:
_go32_dpmi_get_protected_mode_interrupt_vector(9,&oldint);
_go32_dpmi_allocate_iret_wrapper(&newint);
_go32_dpmi_set_protected_mode_interrupt_vector(9,&newint);

And then ..... everything hangs up (is that the good term in english ???)
that mean I hit one key which is handled by my interrupt, and then the
keyboard is blocked: no other keys are handled and I got to make a hard
reset :(

I read about an _go32_dpmi_set_protected_mode_interrupt_handler function in
the info file of glibc and in a doc about interrupt I found on DJGPP web site,
but this function seems to not exist !

So any Ideas ?
Thanks in advance :)

- Raw text -


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