Add: init serial + getting text out of it

This commit is contained in:
2025-12-21 20:33:48 +01:00
parent e6f4200ae9
commit 62302e03d5
6 changed files with 83 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
#include <limine.h>
#include "io/term.h"
#include "io/printf.h"
#include "io/serial.h"
// Limine version used
__attribute__((used, section(".limine_requests")))
@@ -111,6 +112,10 @@ void kmain()
if (term_init()) hcf();
if (serial_init()) kputs("kernel: serial: error: Cannot init serial communication!");
serial_kputs("\n\nkernel: serial: Hello, world from serial!");
// Draw something
printf("%s, %s!", "Hello", "world");