int cpu_interrupt_set(unsigned _new) { int old = cpu_interrupt_get_flag(); if(!_new) { arch_interrupt_disable(); } else { arch_interrupt_enable(); } return old; }
void board_interrupt_disable(int irq) { int ie = hal_save_cli(); if(irq < MIPS_ONCPU_INTERRUPTS) arch_interrupt_disable(irq); else { SHOW_ERROR( 0, "unimpl irq %d", irq ); } if(ie) hal_sti(); }