Article View: comp.os.msdos.programmer
Article #3769Help with Hardware Interrupt programming (2nd try)
From: Stephen Corbesero
Date: Tue, 13 Oct 1992 17:37
Date: Tue, 13 Oct 1992 17:37
28 lines
1773 bytes
1773 bytes
Can someone give me a few pointers on how to handle hardware
interrupts on the PC? I have written a C library to do interrupt
driven communications. [I know all about FOSSILs, but I need the
program to be stand alone.] I have no problem attaching isr's to the
standrad irq's [IRQ 3 & 4], but I am now trying to support any irq
(0-15). I do not know exactly how to proceed with the slave PIC.
Especially when it comes to IRQ9 which is documented as being
redirected to IRQ2.
My "feeling" at this point is
when attaching IRQ9, write an ISR and put it in IRQ2's vector
when doing the pic EOI, send it to the master and the slave
when handling IRQ8,10,11,12,13,14,15, put the ISR
at the appropriate INT vector (0x70, 0x72 through 0x77) and
send the EOI to the master and the slave
when handling the "normal" interrupts, use my existing code, which
attached the appropraite int vector (0x08..0x0F) and send the
EOI only to the master pic.
If anyone knows that I am doing something wrong, please let me know.
Similarly, if there is a good reference that discusses programming the
AT interrupts, I'd also be interested in hearing from you.
Thanks.
--
Stephen Corbesero
CSEE Dept, Lehigh University
Technical Details
Message-ID:
<flash.718997827@aragorn>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.cc.lehigh.edu!aragorn!flashShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.cc.lehigh.edu!aragorn!flash From: flash@aragorn.CSEE.Lehigh.Edu (Stephen Corbesero) Newsgroups: comp.os.msdos.programmer Subject: Help with Hardware Interrupt programming (2nd try) Message-ID: <flash.718997827@aragorn> Date: 13 Oct 92 17:37:07 GMT Sender: usenet@Lehigh.EDU Organization: Lehigh University Lines: 28 Nntp-Posting-Host: aragorn.csee.lehigh.edu