[PATCH 18/40] x86: Move DSDT table to a writer function

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


Move this table over to use a writer function, moving the code from the
x86 implementation.

Add a pointer to the DSDT in struct acpi_ctx so we can reference it later.

Disable this table for sandbox since we don't actually compile real ASL
code.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/x86/lib/acpi_table.c | 49 +++++-----------------------------
 include/dm/acpi.h         |  2 ++
 lib/acpi/Makefile         |  6 +++++
 lib/acpi/base.c           |  2 ++
 lib/acpi/dsdt.c           | 55 +++++++++++++++++++++++++++++++++++++++
 lib/acpi/facs.c           |  2 ++
 6 files changed, 74 insertions(+), 42 deletions(-)
 create mode 100644 lib/acpi/dsdt.c

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list