forked from backup/30dayMakeOS
任务管理自动化
This commit is contained in:
@@ -102,7 +102,7 @@ void inthandler20(int *esp)
|
||||
}
|
||||
/* 超时 */
|
||||
timer->flags = TIMER_FLAGS_ALLOC;
|
||||
if (timer != mt_timer) {
|
||||
if (timer != task_timer) {
|
||||
fifo32_put(timer->fifo, timer->data);
|
||||
} else {
|
||||
ts = 1; /* mt_timer超时*/
|
||||
@@ -112,7 +112,7 @@ void inthandler20(int *esp)
|
||||
timerctl.t0 = timer;
|
||||
timerctl.next = timer->timeout;
|
||||
if (ts != 0) {
|
||||
mt_taskswitch();
|
||||
task_switch();
|
||||
}
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user