[acpi] Allow for the possibility of overriding ACPI tables at link time

Allow for linked-in code to override the mechanism used to locate an
ACPI table, thereby opening up the possibility of ACPI self-tests.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2022-03-24 12:58:52 +00:00
parent dd35475438
commit 27825e5557
5 changed files with 26 additions and 5 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ static int acpi_settings_fetch ( struct settings *settings,
acpi_name ( tag_signature ), tag_index, tag_offset, tag_len );
/* Locate ACPI table */
table = acpi_find ( tag_signature, tag_index );
table = acpi_table ( tag_signature, tag_index );
if ( ! table )
return -ENOENT;