for(struct task *t = task_head(); t != NULL; t = task_next(t)){
//interrupt task
if(is_interrupt_task(t) && had_interrupt(t)){
for(struct task *t = task_head(); t != NULL; t = task_next(t)){
//interrupt task
if(is_interrupt_task(t) && had_interrupt(t)){