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_enable(int irq) { //assert_interrupts_disabled(); int ie = hal_save_cli(); if(irq < MIPS_ONCPU_INTERRUPTS) arch_interrupt_enable(irq); else { #warning todo SHOW_ERROR( 0, "unimpl irq %d", irq ); } if(ie) hal_sti(); }