From 24136157aae8c88f9397903157adf8f6237d73c0 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 13 Sep 2026 11:45:31 -0400 Subject: add barebones uacpi support. just gets tables --- arch/x86_64/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/x86_64/main.c') diff --git a/arch/x86_64/main.c b/arch/x86_64/main.c index 2d4599e..d688fa0 100644 --- a/arch/x86_64/main.c +++ b/arch/x86_64/main.c @@ -4,6 +4,7 @@ #include "lib/virtterm.h" #include "lib/panic.h" #include "../../hal/obj.h" +#include "hal/msr.h" #include "hal/serial_com.h" #include "hal/smp.h" #include "hal/memory.h" @@ -11,6 +12,7 @@ #include "hal/process.h" #include "boot/initrd.h" #include "boot/cmdline.h" +#include "uacpi/uacpi.h" int errno = 0; @@ -23,6 +25,8 @@ static void kernel_process_entry(void); void kernel_entry(void) { + msr_enable_sse(); + obj_settype(_rootdir_obj, JOVE_OBJ_OBJDIR); serial_com_init(); @@ -45,6 +49,9 @@ kernel_entry(void) static void kernel_process_entry(void) { + uint8_t uacpi_buffer[1024]; + uacpi_setup_early_table_access(uacpi_buffer, 1024); + init_setup(); kpanic("Reached the end of kernel main!\n"); } -- cgit v1.2.3