Mask IRQs, register handlers.