Page 1 of 1

sti within interrupt handler

Posted: Sun Aug 23, 2009 5:48 pm
by xvedejas
The way I'm implementing threading requires that I prematurely exit an interrupt handler. This requires I restore interrupts, but an "sti" doesn't seem to work. I've verified that it does set the IF bit, but the system clock interrupt won't fire, and so my thread switching won't work. Is there a reason why interrupts won't fire even though the IF bit is set?

Re: sti within interrupt handler

Posted: Sun Aug 23, 2009 6:04 pm
by pcmattman
Do you still send an EOI in the premature exit of the handler?

Re: sti within interrupt handler

Posted: Sun Aug 23, 2009 6:13 pm
by xvedejas
:) thanks... I knew I was forgetting something