]> git.baikalelectronics.ru Git - uboot.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)
commit081116db594a7cf374a39f09fe101fbe8a3b7675
tree2f5a32f096aec41a5082f8727269fae8688eaaa0
parentcd183182c4c553ad5aed1d1ef2a8b123f696b0ba
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