Add: serial logging function w/ errlevels

This commit is contained in:
xamidev
2024-05-22 11:54:59 +02:00
parent 87c1a97d47
commit 61dec7fe14
7 changed files with 26 additions and 3 deletions

View File

@@ -3,11 +3,12 @@
int kmain(int retvalue)
{
init_serial();
log("serial connection established", 3);
log("Kernel started", 2);
clear();
puts("hello\nbrave\nnew\nworld");
init_serial();
serial_puts("Hello, brave new world. This is a message to let you know that the kernel has started.\n");
serial_puts("This is a second message.\n");
return retvalue;
}