Disabling interrupts and masking interrupts