Efficient DEBUG logging system with __FILE__ and fctprintf
This commit is contained in:
10
src/kmain.c
10
src/kmain.c
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user