diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-13 11:45:31 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-13 11:45:31 -0400 |
| commit | 24136157aae8c88f9397903157adf8f6237d73c0 (patch) | |
| tree | 97555b8bd455ebfe13e3a08b96d3c370b7021d15 /arch/x86_64/main.c | |
| parent | 53fa3cd2bfdb122d773024612d8c1d71f0dd8188 (diff) | |
| download | jove-kernel-24136157aae8c88f9397903157adf8f6237d73c0.tar.gz jove-kernel-24136157aae8c88f9397903157adf8f6237d73c0.tar.bz2 jove-kernel-24136157aae8c88f9397903157adf8f6237d73c0.zip | |
add barebones uacpi support. just gets tables
Diffstat (limited to 'arch/x86_64/main.c')
| -rw-r--r-- | arch/x86_64/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
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"); } |
