From 233fe16825034f1869ba09dfcfb822b9485ca250 Mon Sep 17 00:00:00 2001 From: Yourtion Date: Tue, 17 May 2016 11:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E6=9D=A5=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 27_day/bootpack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/27_day/bootpack.c b/27_day/bootpack.c index 46f1742..d4ee11f 100644 --- a/27_day/bootpack.c +++ b/27_day/bootpack.c @@ -195,6 +195,7 @@ void HariMain(void) io_cli(); /*强制结束处理时禁止任务切换*/ task->tss.eax = (int) &(task->tss.esp0); task->tss.eip = (int) asm_end_app; + task_run(task, -1, 0); /*为了确实执行结束处理,如果处于休眠状态则唤醒*/ io_sti(); } } @@ -266,6 +267,7 @@ void HariMain(void) io_cli(); /*强制结束处理时禁止任务切换*/ task->tss.eax = (int) &(task->tss.esp0); task->tss.eip = (int) asm_end_app; + task_run(task, -1, 0); io_sti(); } else { /*命令行窗口*/ task = sht->task;