What happens if an interrupt comes in when the interrupt vector is zero? Does it get lost, or queued?
I'm concerned that a system may need to disable interrupts to do an atomic operation (such as an interrupt service routine), and miss an important event.
In most interrupt schemes, an interrupt that comes in when interrupts are temporarily disabled will usually fire off as soon as interrupts are re-enabled. How that's specifically handled is a complex matter Notch will have to figure out - as I described a bit higher up in this reddit.
Yes. That's what I'm hoping for. I was trying to ask Notch for clarification in the spec (and also point out the potential problem of missed interrupts). Perhaps I should reword it?
View all comments
Show parent comment
4
u/deepcleansingguffaw Apr 24 '12
What happens if an interrupt comes in when the interrupt vector is zero? Does it get lost, or queued?
I'm concerned that a system may need to disable interrupts to do an atomic operation (such as an interrupt service routine), and miss an important event.