1
0
Fork 0

feat/kernel: Re-add ACPI

This commit is contained in:
Kevin Alavik 2025-05-29 20:07:36 +02:00
parent b41cc11e39
commit 8516143538
Signed by: cmpsb
GPG key ID: 10D1CC0526FDC6D7
4 changed files with 134 additions and 1 deletions

View file

@ -18,6 +18,7 @@
#include <flanterm/backends/fb.h>
#endif // FLANTERM_SUPPORT
#include <arch/smp.h>
#include <sys/acpi.h>
__attribute__((used, section(".limine_requests"))) static volatile LIMINE_BASE_REVISION(3);
__attribute__((used, section(".limine_requests"))) static volatile struct limine_memmap_request memmap_request = {
@ -166,6 +167,14 @@ void emk_entry(void)
*c = 32;
kfree(c);
/* Setup ACPI (and TODO APIC) */
rsdp_response = rsdp_request.response;
if (!rsdp_response)
{
kpanic(NULL, "Failed to get RSDP request");
}
acpi_init();
/* Finished */
log_early("%s", LOG_SEPARATOR);
uint32_t uptime = 0;