x86_64: acpi: bring up other APs in long mode

This commit is contained in:
2023-05-01 18:13:44 +01:00
parent 223b37a113
commit 4677c881e1
6 changed files with 201 additions and 114 deletions

View File

@@ -44,10 +44,13 @@ void e820_scan(multiboot_memory_map_t *mmap, size_t len)
memblock_reserve(entry->addr, entry->len);
mem_reserved += entry->len;
}
mem_total += entry->len;
}
/* reserve a page at 0x8000 for use by the ACPI AP trampoline code */
memblock_reserve(0x8000, 0x1000);
char str_mem_total[64], str_mem_reserved[64];
data_size_to_string(mem_total, str_mem_total, sizeof str_mem_total);
data_size_to_string(mem_reserved, str_mem_reserved, sizeof str_mem_reserved);