]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: acpi: Split out context creation from base tables
authorSimon Glass <sjg@chromium.org>
Wed, 1 Dec 2021 16:02:48 +0000 (09:02 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Jan 2022 18:44:36 +0000 (11:44 -0700)
commitcc1f8c39882c5100ec07dfa46e32ff395d792b94
tree2f5a32f096aec41a5082f8727269fae8688eaaa0
parent6afa63a5a63662fa7e517b29da613f51e9e68429
x86: acpi: Split out context creation from base tables

At present acpi_setup_base_tables() both sets up the ACPI context and
writes out the base tables.

We want to use an ACPI writer to write the base tables, so split this
function into two, with acpi_setup_ctx() doing the context set, and
acpi_setup_base_tables() just doing the base tables.

Disable the writer's write_acpi_tables() function for now, to avoid
build errors. It is enabled in a following patch.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/acpi_table.c
include/acpi/acpi_table.h
include/dm/acpi.h
lib/acpi/Makefile
lib/acpi/acpi_table.c
lib/acpi/acpi_writer.c
test/dm/acpi.c