Page 1 of 1

masking interrupts

Posted: Wed Aug 26, 2009 4:32 pm
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

Re: masking interrupts

Posted: Wed Aug 26, 2009 5:12 pm
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.