diff options
Diffstat (limited to 'src/kernel/task.c')
-rw-r--r-- | src/kernel/task.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kernel/task.c b/src/kernel/task.c index e2412e1..8d8de86 100644 --- a/src/kernel/task.c +++ b/src/kernel/task.c @@ -86,12 +86,12 @@ void advance_active_task() { } void make_sure_tasks() { - for (uint8_t n = 0; n < MAX_TASKS; ++n) - if (tasks[n].page_directory) - return; - logf(LOG_INFO, "No tasks, halting."); - while (1) - asm("hlt"); + while (1) { + for (uint8_t n = 0; n < MAX_TASKS; ++n) + if (tasks[n].page_directory) + return; + tmp_halt(); + } } //IPC stuff isn't fully implemented, or tested in this version. |