summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/hal/uacpi.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-09-13 11:45:31 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-09-13 11:45:31 -0400
commit24136157aae8c88f9397903157adf8f6237d73c0 (patch)
tree97555b8bd455ebfe13e3a08b96d3c370b7021d15 /arch/x86_64/hal/uacpi.c
parent53fa3cd2bfdb122d773024612d8c1d71f0dd8188 (diff)
downloadjove-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/hal/uacpi.c')
-rw-r--r--arch/x86_64/hal/uacpi.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86_64/hal/uacpi.c b/arch/x86_64/hal/uacpi.c
new file mode 100644
index 0000000..052f849
--- /dev/null
+++ b/arch/x86_64/hal/uacpi.c
@@ -0,0 +1,15 @@
+#include "lib/printf.h"
+#include "uacpi/kernel_api.h"
+#include "paging.h"
+
+void *uacpi_kernel_map(uacpi_phys_addr addr, uacpi_size len)
+{
+ //kprintf("UACPI kernel map %p -> %p\n", addr, (uintptr_t)addr | IDENT_VIRT_BASE);
+ return (void*)(addr | IDENT_VIRT_BASE);
+}
+
+void uacpi_kernel_unmap(void *addr, uacpi_size len)
+{
+ (void)addr;
+ (void)len;
+}