x86_64: add a basic ACPI driver

This commit is contained in:
2023-02-09 19:09:07 +00:00
parent a206b640e9
commit ddb00acd31
6 changed files with 182 additions and 4 deletions

9
arch/x86_64/acpi/acpi.c Normal file
View File

@@ -0,0 +1,9 @@
#include <arch/acpi.h>
#include <socks/printk.h>
kern_status_t acpi_init(void)
{
struct acpi_sdt *fadt = acpi_find_sdt(ACPI_SIG_FADT);
printk("acpi: FADT=%p", fadt);
return KERN_OK;
}