Logger and working GDT

This commit is contained in:
Benjamin Kyd
2019-04-27 23:35:28 +01:00
parent bda171256f
commit 6be1414484
15 changed files with 236 additions and 19 deletions

View File

@@ -0,0 +1,26 @@
#include "logger.h"
#include <kernel/drivers/terminal/terminal.h>
void loggerLog(char* str) {
write(" ");
writeln(str);
}
void loggerOK(char* str) {
write("[");
setFGColour(VGA_BRIGHT_GREEN);
write(" OK ");
setFGColour(VGA_WHITE);
write("] ");
writeln(str);
}
void loggerFailed(char* str) {
write("[");
setFGColour(VGA_BRIGHT_RED);
write("FAILED");
setFGColour(VGA_WHITE);
write("] ");
writeln(str);
}