diff options
author | Simon Glass <sjg@chromium.org> | 2021-12-01 09:02:49 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-01-25 11:44:36 -0700 |
commit | 31c27eb83084e77921b82e7e631ecd6ae8b904da (patch) | |
tree | 86e723f085caabbfd47c4a0a5cd1783f87fcf1c8 /lib/acpi | |
parent | cc1f8c39882c5100ec07dfa46e32ff395d792b94 (diff) | |
download | u-boot-31c27eb83084e77921b82e7e631ecd6ae8b904da.zip u-boot-31c27eb83084e77921b82e7e631ecd6ae8b904da.tar.gz u-boot-31c27eb83084e77921b82e7e631ecd6ae8b904da.tar.bz2 |
x86: Use the ACPI table writer
Use the new ACPI writer to write the ACPI tables. At present this is all
done in one monolithic function. Future work will split this out.
Unfortunately the QFW write_acpi_tables() function conflicts with the
'writer' version, so disable that for sandbox.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/acpi')
-rw-r--r-- | lib/acpi/acpi_writer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/acpi/acpi_writer.c b/lib/acpi/acpi_writer.c index 7779bf3..53fc753 100644 --- a/lib/acpi/acpi_writer.c +++ b/lib/acpi/acpi_writer.c @@ -40,6 +40,7 @@ int acpi_write_one(struct acpi_ctx *ctx, const struct acpi_writer *entry) return 0; } +#ifndef CONFIG_QEMU static int acpi_write_all(struct acpi_ctx *ctx) { const struct acpi_writer *writer = @@ -60,7 +61,7 @@ static int acpi_write_all(struct acpi_ctx *ctx) /* * QEMU's version of write_acpi_tables is defined in drivers/misc/qfw.c */ -ulong new_write_acpi_tables(ulong start_addr) +ulong write_acpi_tables(ulong start_addr) { struct acpi_ctx *ctx; ulong addr; @@ -86,6 +87,7 @@ ulong new_write_acpi_tables(ulong start_addr) return addr; } +#endif /* QEMU */ void acpi_setup_ctx(struct acpi_ctx *ctx, ulong start) { |