Beispiel #1
0
void isr_handler(pt_regs_t *regs){
    
    if(interrupt_handlers[regs->int_no]){
        interrupt_handlers[regs->int_no](regs);
    }else{
        printk("unable interrupt %d %s\n",regs->int_no,intrname(regs->int_no));
        cpu_hlt();
    }
    return ;
}
Beispiel #2
0
// 调用中断处理函数
void isr_handler(pt_regs_t *regs)
{
        if (interrupt_handlers[regs->int_no]) {
              interrupt_handlers[regs->int_no](regs);
        } else {
                printk_color(rc_black, rc_blue, "Unhandled interrupt: %d %s\n", regs->int_no, intrname(regs->int_no));
                cpu_hlt();
        }
}