On Sunday 14 March 2010 17:41:46 Michael Walle wrote: > Shouldn't the linux kernel mask the interrupt it is currently processing > (in case of level sensitive interrupts)?
I don't think so. When the CPU enters exception mode, the global interrupt enable bit (IE.IE) is cleared and saved to IE.EIE. So, the interrupt handler will not be run in a loop even if the interrupt line is kept active. Then, once the exception has been serviced, the interrupt handler executes the "eret" instruction which restores IE.IE from IE.EIE, globally enabling interrupts again. Only at this point is the interrupt handler run again if the interrupt line is still active (or the interrupt hasn't been acked). Sébastien _______________________________________________ http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org IRC: #milkym...@freenode Webchat: www.milkymist.org/irc.html Wiki: www.milkymist.org/wiki
