Interrupt when disabled

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
User avatar
prinzrainer
Posts: 13
Joined: Sun Nov 22, 2009 11:36 pm

Interrupt when disabled

Post by prinzrainer »

I am using the APIC timer for my scheduler so that when the timer gets on a specified time it will call my scheduler through interrupt.. Suppose a user process calls a system code which will disable interrupts...what will happen if the timer fired before interrupts are enabled..will the scheduler still be serviced after the interrupts are enabled?
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Interrupt when disabled

Post by JamesM »

Yes - the APIC is responsible for queuing interrupts so that as soon as IF is enabled, the CPU will trap and take that exception.

You won't "lose" any IRQs unless multiple interrupt requests come from the same device before the first is taken. Then, only one will be delivered to the processor.
Post Reply