OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Apr 28, 2024 3:23 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: irq handler
PostPosted: Mon Apr 01, 2002 12:00 am 
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!


Top
  
 
 Post subject: RE:irq handler
PostPosted: Mon Apr 01, 2002 12:00 am 
>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!
Query the device ...
For a network check the i/o buffers, for a video
well, don't if you can test wether you are just
in a vertical retrace and similar for other devices.

The Legend


Top
  
 
 Post subject: RE:irq handler
PostPosted: Mon Apr 01, 2002 12:00 am 
Query the devis?
I still don't get it!


Top
  
 
 Post subject: RE:irq handler
PostPosted: Mon Apr 01, 2002 12:00 am 
>On 2002-04-01 11:25:08, Stefan wrote:
>Query the devis?
>I still don't get it!
Call each handler associated with an irq and each
handler will check if anything needs to be done.
That way, more than one device is possible.

The Legend


Top
  
 
 Post subject: RE:irq handler
PostPosted: Mon Apr 01, 2002 12:00 am 
>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


Top
  
 
 Post subject: RE:irq handler
PostPosted: Tue Apr 02, 2002 12:00 am 
>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.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: SemrushBot [Bot] and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group