mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 12:00:19 +03:00
[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:
@@ -107,7 +107,7 @@ static int acpi_timer_probe ( void ) {
|
||||
unsigned int pm_tmr_blk;
|
||||
|
||||
/* Locate FADT */
|
||||
fadt = acpi_find ( FADT_SIGNATURE, 0 );
|
||||
fadt = acpi_table ( FADT_SIGNATURE, 0 );
|
||||
if ( ! fadt ) {
|
||||
DBGC ( &acpi_timer, "ACPI could not find FADT\n" );
|
||||
return -ENOENT;
|
||||
|
||||
@@ -123,7 +123,7 @@ int acpi_poweroff ( void ) {
|
||||
int rc;
|
||||
|
||||
/* Locate FADT */
|
||||
fadt = acpi_find ( FADT_SIGNATURE, 0 );
|
||||
fadt = acpi_table ( FADT_SIGNATURE, 0 );
|
||||
if ( ! fadt ) {
|
||||
DBGC ( colour, "ACPI could not find FADT\n" );
|
||||
return -ENOENT;
|
||||
|
||||
Reference in New Issue
Block a user