x86_64: write printk messages to COM1 serial port

This commit is contained in:
2023-05-06 21:33:36 +01:00
parent 94ea756b31
commit a9e95db39b
4 changed files with 80 additions and 14 deletions

View File

@@ -12,6 +12,7 @@
#include <socks/machine/cpu.h>
#include <socks/libc/stdio.h>
#include <arch/vgacon.h>
#include <arch/serial.h>
#include <arch/acpi.h>
#define PTR32(x) ((void *)((uintptr_t)(x)))
@@ -47,6 +48,7 @@ int ml_init(uintptr_t arg)
bootstrap_cpu_init();
vgacon_init();
serialcon_init();
clock_calibrate(500);
print_kernel_banner();