>On 2002-04-01 17:04:45, J. Weeks wrote:
>>On 2002-04-01 09:52:35, Stefan wrote:
>>I don't get it! What should an irq handler (routine) do?
>>How can I know wich device interrupts me, when the same irq is shared for more than one device?
>>
>>Can anybody give me a hand with this problem?
>>Thanks!
>
>Prob'ly the easiest way to handle this is to
>simply make sure each device has a different
>IRQ.
>
>If you map your "standard" (I'm at a
>loss for a good name for those... all I mean
>is the processor generated irq's... keyboard,
>timer, co-pro, etc) interrupts to above 0x20
>you'll probably save a lot of hassle.
>
>That way, for example, if you get an irq 6 you
>don't have to wonder wether it's the network card
>(if it were assign to irq 6, I mean)
>or and invalid opcode exception.
>
>Hope that helps,
>Jeff
Remap the IRQs starting at either 0x20 or some other number that is a multipule of 8 and like 0x40
If you remap the IRQs, you will have a much easier time making your OS.
K.J.
|