sti within interrupt handler

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
xvedejas
Member
Member
Posts: 168
Joined: Thu Jun 04, 2009 5:01 pm

sti within interrupt handler

Post 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?
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: sti within interrupt handler

Post by pcmattman »

Do you still send an EOI in the premature exit of the handler?
User avatar
xvedejas
Member
Member
Posts: 168
Joined: Thu Jun 04, 2009 5:01 pm

Re: sti within interrupt handler

Post by xvedejas »

:) thanks... I knew I was forgetting something
Post Reply