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

View File

@@ -7,6 +7,7 @@
#include <socks/printk.h>
#include <socks/machine/cpu.h>
#include <arch/vgacon.h>
#include <arch/acpi.h>
#define PTR32(x) ((void *)((uintptr_t)(x)))
@@ -51,6 +52,8 @@ int ml_init(uintptr_t arg)
pmap_bootstrap();
acpi_init();
vm_zone_descriptor_t vm_zones[] = {
{ .zd_id = VM_ZONE_DMA, .zd_node = 0, .zd_name = "dma", .zd_base = 0x00, .zd_limit = 0xffffff },
{ .zd_id = VM_ZONE_NORMAL, .zd_node = 0, .zd_name = "normal", .zd_base = 0x1000000, .zd_limit = UINTPTR_MAX },