When you disable interrupts (with the cli
instruction in x86), what exactly happens?
Does the PIC wait for you to turn on interrupts, and fire the interrupt when that happens? (If so, how long does it wait, and what happens if the time 'expires'?)
Does the interrupt -- from the device's perspective -- get sent into a "black hole", with no response?
Does the PIC somehow tell the device that "the CPU is busy" or something?
Or does something else happen?
Also, how do you deal with an interrupt you don't know how to handle?
Is there some way to tell the PIC (or the device, if you don't know what the device is), "yes, I got your message, but I don't know what to do with it"?