diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-06 13:44:20 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-06 13:44:20 -0400 |
commit | 73bb0e48640b842824a0b45fe4854df8ff7faf7b (patch) | |
tree | 077dec8a426db1e835393964da4736e91ff4c69d /src/kernel/main.c | |
parent | cbc85f6e897808b29e2f712156e2fa4d073d8277 (diff) | |
download | portland-os-73bb0e48640b842824a0b45fe4854df8ff7faf7b.tar.gz |
bugfixes, init program, hello world
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r-- | src/kernel/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 |