diff options
author | Marvin Borner | 2019-10-28 01:06:28 +0100 |
---|---|---|
committer | Marvin Borner | 2019-10-28 01:06:28 +0100 |
commit | ff91840abbc9ab421c67dc3aca0de42af22d8219 (patch) | |
tree | 2e26e7e67154fbbfccfb9f75af8d4cc21086d420 /src/kernel/system.c | |
parent | 4aa421786c86f0e50ebcc881fb87580e589fc451 (diff) |
Added support for more color types (bpp)
Somehow the text is inverted and things are strange but the colors may be correct.
Diffstat (limited to 'src/kernel/system.c')
-rw-r--r-- | src/kernel/system.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kernel/system.c b/src/kernel/system.c index c8f89b6..2de1183 100644 --- a/src/kernel/system.c +++ b/src/kernel/system.c @@ -23,7 +23,7 @@ void log(char *msg) { vesa_set_color(vesa_dark_white); kernel_time(); vesa_draw_string(msg); - vesa_set_color(text_color); + vesa_set_color(default_text_color); } void info(char *msg) { @@ -31,7 +31,7 @@ void info(char *msg) { kernel_time(); vesa_draw_string("INFORMATION: "); vesa_draw_string(msg); - vesa_set_color(text_color); + vesa_set_color(default_text_color); } void warn(char *msg) { @@ -39,19 +39,19 @@ void warn(char *msg) { kernel_time(); vesa_draw_string("WARNING: "); vesa_draw_string(msg); - vesa_set_color(text_color); + vesa_set_color(default_text_color); } void panic(char *msg) { asm volatile ("cli"); vesa_set_color(vesa_dark_red); kernel_time(); - serial_write("PANIC: "); + serial_write("\nPANIC: "); serial_write(msg); - serial_write(" - System Halted!\n"); + serial_write(" - System halted!\n"); vesa_draw_string("PANIC: "); vesa_draw_string(msg); - vesa_draw_string(" - System Halted!\n"); + vesa_draw_string(" - System halted!\n"); loop: asm volatile ("hlt"); goto loop; |