[PATCH 14/40] x86: acpi: Split out context creation from base tables

Simon Glass sjg at chromium.org
Sun Jan 23 22:53:51 CET 2022


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 at chromium.org>
---

 arch/x86/lib/acpi_table.c |  6 +++---
 include/acpi/acpi_table.h | 10 +++++-----
 include/dm/acpi.h         | 12 ++++++++++++
 lib/acpi/Makefile         |  1 +
 lib/acpi/acpi_table.c     | 11 ++---------
 lib/acpi/acpi_writer.c    | 22 ++++++++++++++++------
 test/dm/acpi.c            | 31 ++++++++++++++++++++++++++-----
 7 files changed, 65 insertions(+), 28 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list