delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/06/09:27:19

Message-ID: <19991006123316.20502.rocketmail@web1402.mail.yahoo.com>
Date: Wed, 6 Oct 1999 05:33:16 -0700 (PDT)
From: Prashant TR <prashant_news AT yahoo DOT com>
Subject: Re: deriving the interrupt vector
To: djgpp AT delorie DOT com
Cc: Martin_Czamai AT peak-service DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com


--- Martin Czamai <Martin_Czamai AT peak-service DOT com>
wrote:
> Hi all again,
> 
> who can tell me how to derive the interrupt vector,
> when I've got the
> interrupt request line (interrupt level) of a
> interrupt controller?
> 

Hi Martin,

I didn't quite get what you mean. Anyway, I assume
you're asking me how to catch IRQs 0-15.

The __dpmi_version_ret function gives you the PIC
mater amd slave base interrupts.

This means that if you want to hook IRQ0-7, you'll
need to hook up interrupt vector=pic_master_base+IRQ
no. This applies for IRQs 0-7.

For IRQs 8-15, you'll need to hook up
interrupt=pic_slave_base+IRQ no.

Normally, IRQ0-7=interrupt 8h-0fh
          IRQ8-15=interrupt 70h-78h

Use _go32_dpmi_set_protected_mode_interrupt_vector.

Is this more or less what you're looking for ?

----
Prashant TR
http://www.members.tripod.com/prashant_tr/

=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

- Raw text -


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