Question about IRQ

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Wolftein
Posts: 14
Joined: Wed Oct 15, 2008 3:39 pm

Question about IRQ

Post by Wolftein »

I Have a question. it's a good idea to make an irq handle, Not to Handle the irq inmediatly, and handling in the multitasker?, And it's better this way? or it's better to handle inmediatly.for example

Code: Select all

         /// Irq 0 = Timer, doesn't do this, so can call the Multitasker..

         void irqHandle( ... )
         {
           PreIrqBody
           
              pushToList irqNumber,irqRegisters
           
           PostIrqBody
         }

         void Multitasker(   )
         {
           if(irqStackList != NULL) {
              PopIrq (IrqNumber,IrqRegisters)
              DoIrqAction IrqNumber,IrqRegisters
           }
        
           HandleProcessEtc...
          }
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: Question about IRQ

Post by neon »

Wolftein wrote:I Have a question. it's a good idea to make an irq handle, Not to Handle the irq inmediatly, and handling in the multitasker?, And it's better this way? or it's better to handle inmediatly.for example
Its entirely up to you and your systems design goals. I personally prefer handling it as soon as it happens.

Oh, and get FF - its automatic spellchecker is great! :D
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Post Reply