masking interrupts

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
sancho1980
Member
Member
Posts: 199
Joined: Fri Jul 13, 2007 6:37 am
Location: Stuttgart/Germany
Contact:

masking interrupts

Post by sancho1980 »

hi

when i mask a specific interrupt by sending a byte to port 0x21, what happens when i reenable that interrupt again later? will any masked interrupts now be triggered or are they lost?
if they're lost, is there anything similiar to signals, where i can block specific signals with sigprocmask and then receive them later by unblocking them??

thanks

martin
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: masking interrupts

Post by neon »

Hello,

When an interrupt is masked, any interrupt request on that line is ignored by the controller, so the interrupt signals are lost. When it is unmasked, the interrupts continue as normal.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Post Reply