From 73bb0e48640b842824a0b45fe4854df8ff7faf7b Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 6 Sep 2020 13:44:20 -0400 Subject: bugfixes, init program, hello world --- src/kernel/task.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/kernel/task.c') diff --git a/src/kernel/task.c b/src/kernel/task.c index c8a8ac8..80818a7 100644 --- a/src/kernel/task.c +++ b/src/kernel/task.c @@ -79,7 +79,9 @@ void advance_active_task() { if (++active_task == tasks + MAX_TASKS) active_task = tasks; if (active_task == prev_task) { - logsz("No active tasks.\nHalting."); + logch('\n'); + set_log_mode(LOG_SYSTEM); + logsz("\nNo active tasks, halting."); while (1) asm ("hlt"); } -- cgit v1.2.3