www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/04/11:54:47

Date: Tue, 4 Apr 1995 15:47:53 +0200
From: fs5a019 AT rrz DOT uni-hamburg DOT de (Carsten Benecke)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Interrupt programming: help wanted

Hi,

I programmed an interrupt service function for a hardware interrupt (IRQ 9). I 
used the source code from David Baggett`s Sound Blaster Sample (9-Nov-93) and 
did some small changes for the IRQ 9:
+ use slave PIC at base 0xa0 to enable and acknowledge the IRQ
+ install a new real mode interrupt vector for interrupt 0x71 (IRQ 9)
+ chain a new protected mode interrupt vector for interrupt 0x71

The service function is called only for the first two hardware interrupts!
No more hardware interrupts can be served by my function!

Whenever I simulate an interrupt with _go32_dpmi_simulate_int() my function
is called and everything works well.

Please give me some hints.

By the way, how can I access the first PIC ? It`s interrupt vectors are moved
somewhere by go32 in order to place there the exception vectors, aren`t they ?


Thanks, Carsten Benecke.
 [C

- Raw text -


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