diff options
author | Michael Brown <mcb30@ipxe.org> | 2022-03-23 14:39:11 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2022-03-24 12:58:52 +0000 |
commit | 27825e555746c379ac045466f692ed77686af2b5 (patch) | |
tree | 6b2241855530b3782894b9ac40058a8678e2ff05 /src/arch | |
parent | dd3547543811dd2e996b910bdadb609414904352 (diff) | |
download | ipxe-27825e555746c379ac045466f692ed77686af2b5.tar.gz |
[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>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/interface/pcbios/acpi_timer.c | 2 | ||||
-rw-r--r-- | src/arch/x86/interface/pcbios/acpipwr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/interface/pcbios/acpi_timer.c b/src/arch/x86/interface/pcbios/acpi_timer.c index 82e85a034..2e4047e38 100644 --- a/src/arch/x86/interface/pcbios/acpi_timer.c +++ b/src/arch/x86/interface/pcbios/acpi_timer.c @@ -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; diff --git a/src/arch/x86/interface/pcbios/acpipwr.c b/src/arch/x86/interface/pcbios/acpipwr.c index 3dac6b605..f08b4af25 100644 --- a/src/arch/x86/interface/pcbios/acpipwr.c +++ b/src/arch/x86/interface/pcbios/acpipwr.c @@ -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; |