Efficient DEBUG logging system with __FILE__ and fctprintf

This commit is contained in:
2025-12-28 12:15:32 +01:00
parent ead0ed6ae1
commit 3853a1ace3
9 changed files with 55 additions and 40 deletions

View File

@@ -48,9 +48,8 @@ void kmain()
// Get the first framebuffer from the response
framebuffer = framebuffer_request.response->framebuffers[0];
if (term_init()) hcf();
if (serial_init()) kputs("kernel: serial: error: Cannot init serial communication!");
term_init();
serial_init();
CLEAR_INTERRUPTS;
gdt_init();
@@ -61,8 +60,9 @@ void kmain()
keyboard_init(FR);
// Draw something
printf("%s, %s!", "Hello", "world");
printf("%s, %s!\n", "Hello", "world");
//printf("%d", 4/0);
// Yoohoooooo!
DEBUG("kernel initialized successfully! hanging...");
hcf();
}