]> Zhao Yanbai Git Server - kernel.git/commitdiff
内核测试线程引入hlt指令
authoracevest <zhaoyanbai@126.com>
Wed, 3 Nov 2021 01:36:52 +0000 (09:36 +0800)
committeracevest <zhaoyanbai@126.com>
Wed, 3 Nov 2021 02:45:48 +0000 (10:45 +0800)
kernel/init.c

index fe21e2487a00a739e750efaaf53fab817c9fefe8..bd699fa0fdd0e0065217475fedef92fae6c66144 100644 (file)
@@ -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;");
     }
 }