Page 1 of 1

Interrupt when disabled

Posted: Sun Oct 10, 2010 3:59 am
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?

Re: Interrupt when disabled

Posted: Sun Oct 10, 2010 4:01 am
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.