Пример #1
0
int cpu_interrupt_set(unsigned _new)
{
	int old = cpu_interrupt_get_flag();
	if(!_new) {
		arch_interrupt_disable();
	} else {
		arch_interrupt_enable();
	}
	return old;
}
Пример #2
0
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();
}