acpi: Allow finding the RSDT or XSDT

At present acpi_find_table() support locating most of the tables, but
not these two, since they are the pointers to the rest.

When adding new tables, these tables need to be located and updated, so
update acpi_find_table() to allow searching for them.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-07-08 04:47:11 +02:00
parent 84dfe7f251
commit 34203312d0
2 changed files with 13 additions and 0 deletions

View File

@@ -809,6 +809,9 @@ static int dm_test_acpi_find_table(struct unit_test_state *uts)
ut_asserteq_ptr(table3, table);
ut_asserteq_strn("TST3", table->signature);
table = acpi_find_table("RSDT");
ut_asserteq_ptr(nomap_sysmem(rsdt, 0), table);
/* Find with XSDT only */
rsdp->rsdt_address = 0;
acpi_udpate_rsdp_checksum(rsdp);