Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/76133?usp=email )
Change subject: UNTESTED arch/x86/tables.c: Carve out ACPI as separate bootmem range ......................................................................
UNTESTED arch/x86/tables.c: Carve out ACPI as separate bootmem range
ACPI memory needs to be read only once by the OS and can in principle be reclaimed afterwards.
Signed-off-by: Arthur Heymans arthur@aheymans.xyz Change-Id: I1bd0ef2b1a36f101ecf89237eddcf07a79d0a9ec --- M src/arch/x86/tables.c 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/76133/1
diff --git a/src/arch/x86/tables.c b/src/arch/x86/tables.c index 1cff614..42c7b8a 100644 --- a/src/arch/x86/tables.c +++ b/src/arch/x86/tables.c @@ -222,4 +222,9 @@ const uintptr_t base = 0;
bootmem_add_range(base, forwarding_table - base, BM_MEM_TABLE); + + if (CONFIG(HAVE_ACPI_TABLES)) { + const struct cbmem_entry *acpi = cbmem_entry_find(CBMEM_ID_ACPI); + bootmem_add_range((uintptr_t)cbmem_entry_start(acpi), cbmem_entry_size(acpi), BM_MEM_ACPI); + } }