forked from xuos/xiuos
Fully support userland interrupt handler. Use fixed common abort handler.
This commit is contained in:
@@ -71,10 +71,10 @@ void software_irq_dispatch(struct trapframe* tf)
|
||||
cur_cpu()->task = NULL;
|
||||
context_switch(&cur_task->main_thread.context, cur_cpu()->scheduler);
|
||||
}
|
||||
assert(cur_task == cur_cpu()->task);
|
||||
if (syscall_num == SYSCALL_EXIT) {
|
||||
panic("Exit reaches");
|
||||
}
|
||||
|
||||
assert(cur_task == cur_cpu()->task);
|
||||
xizi_leave_kernel();
|
||||
}
|
||||
Reference in New Issue
Block a user