From: acevest Date: Wed, 3 Nov 2021 01:36:52 +0000 (+0800) Subject: 内核测试线程引入hlt指令 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=7d00867617e6919dec69c7e2ba128fd9919342b9;p=kernel.git 内核测试线程引入hlt指令 --- diff --git a/kernel/init.c b/kernel/init.c index fe21e24..bd699fa 100644 --- a/kernel/init.c +++ b/kernel/init.c @@ -43,6 +43,7 @@ void init_task_entry() { // printl(MPL_TASK_1, "task:%d [%08x] weight %d cnt %d", id, current, current->weight, cnt++); int v = 0; // debug_wait_queue_get(); // printk("task:%d wait queue get %d\n", id, v); + asm("hlt;"); } }