Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.msdos.programmer > #677
| From | liaoo <jimmyliaoo@gmail.com> |
|---|---|
| Newsgroups | comp.os.msdos.programmer |
| Subject | [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] |
| Date | 2012-07-25 08:50 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <82fd41a6-ff0c-4077-82b9-a56291dc4530@googlegroups.com> (permalink) |
Dear all, I have a question about how to hook out HW interrupt in "flat memory" model..Maybe you can give me some directions... @ about my application... - created by combining Watcom C and DOS32/A. Memory model is "flat" - written for running on DOS mode only... - now I can access >1M memory and allocate large memory with dos extender... @ current issue... - I want to test the ISR(interrupt service routine) for one PCI card. Thus I need to "hook" out the HW interrupt IRQ 14 to test... - the PCI card's interrupt line(0x3C) = 0xE in DOS mode. That means this device will issue interrupt via 8259's IRQ 14. But... I did not how to achieve my goal to hook out this interrupt in "flat mode" ? @ what I have tried: 1. in watcom C's lib document, there is one sample code using _dos_getvect, _dos_setvect, and _chain_intr to hook INT 0x1C...I tested this code and found OK. If applying to INT 8 or 9 still OK ! But if applying this to INT 76h( here 76h means: interrupt number for IRQ14 and is from: (14-8)+0x70h for PIC mode... ) I found my code is not invoked ! * I have checked HW interrupt is generated correctly but... my own ISR did NOT invoked... 2. I have tried using DPMI function 0x204/0x205 to get/set Protected Mode interrupt vector. But still in vain...(my own ISR is still not called...!) Do I miss something ? Is there anyone doing this before ? or could you provide me some directions ? Any help will be appreciated...! Thanks !
Back to comp.os.msdos.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
[Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-07-25 08:50 -0700
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] cg_chas <cg_chas@hotmail.com> - 2012-07-25 22:41 -0400
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-07-25 20:06 -0700
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] cg_chas <cg_chas@hotmail.com> - 2012-07-26 00:06 -0400
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-07-25 21:42 -0700
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] cg_chas <cg_chas@hotmail.com> - 2012-07-26 09:07 -0400
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-07-26 08:10 -0700
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-07-27 16:13 -0400
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-07-27 23:04 -0700
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-07-27 23:38 -0700
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] cg_chas <cg_chas@hotmail.com> - 2012-07-25 22:51 -0400
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] JJ <jaejunks_at@_googlemail_dot._com> - 2012-07-26 14:05 +0000
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-07-26 07:41 -0700
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-07-27 16:13 -0400
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-07-27 22:57 -0700
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-07-28 05:06 -0400
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-07-28 05:52 -0700
Re: [Hook out HW interrupt IRQ14 with Watcom C+DOS/32a in DOS ] liaoo <jimmyliaoo@gmail.com> - 2012-08-14 20:15 -0700
csiph-web