handling code so that if a given interrupt is disabled (and therefore can't have caused the actual I/O interrupt), its handler won't be called even if its bit is set in the interrupt register.
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is _incredibly_ hack-ish, etc., but it works.