a2a5c1629e
more compact by factoring out register update to happen in one place, outside the switch statements. Add intc_intr_disable() and intc_intr_enable().