x86: Move base tables to a writer function

Use the new ACPI writer to write the base tables at the start of the area,
moving this code from the x86 implementation.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2021-12-01 09:02:50 -07:00
parent 31c27eb830
commit 94ba15a3f1
8 changed files with 133 additions and 96 deletions

View File

@@ -678,16 +678,6 @@ void acpi_inc_align(struct acpi_ctx *ctx, uint amount);
*/
int acpi_add_table(struct acpi_ctx *ctx, void *table);
/**
* acpi_setup_base_tables() - Set up base tables - RSDP, RSDT and XSDT
*
* Writes the basic tables to the given context, which must first be set up with
* acpi_setup_ctx().
*
* @ctx: Context to write base tables to
*/
void acpi_setup_base_tables(struct acpi_ctx *ctx);
/**
* acpi_write_rsdp() - Write out an RSDP indicating where the ACPI tables are
*