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/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/kernel/main.c') diff --git a/src/kernel/main.c b/src/kernel/main.c index 1fe8e7b..2f63d71 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -10,8 +10,8 @@ #include "pmap.h" #include "task.h" #include "pci.h" -#include "log.h" #include "elf.h" +#include "log.h" #include "vga.h" void reset_tree(); @@ -27,7 +27,8 @@ void main() { init_paging(); init_tasks(); init_serial(); - init_log(); + set_log_mode(LOG_SYSTEM); + vga_blank(); logsz("Portland v0.0.11\n\n"); @@ -146,6 +147,7 @@ void main() { init_idt(); - vga_set_color(0x07); + set_log_mode(LOG_USER); + logch('\n'); _start_user_mode(); } \ No newline at end of file -- cgit v1.2.3