diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-03-01 00:08:23 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-03-01 00:08:23 +0000 |
commit | 9776f6ece1104cc32de3249844a8a7387112f32f (patch) | |
tree | b5916d250368fc66575bb000c51f5a7c7b0e203d /src/core | |
parent | d175936b78abc2b137a5a1e66ad7cf79b5849058 (diff) | |
download | ipxe-kexec.zip ipxe-kexec.tar.gz ipxe-kexec.tar.bz2 |
The ACPI API currently expects platforms to provide access to a single
contiguous ACPI table. Some platforms (e.g. Linux userspace) do not
provide a convenient way to obtain the entire ACPI table, but do
provide access to individual tables.
All iPXE consumers of the ACPI API require access only to individual
tables.
Redefine the internal API to make acpi_find() an API method, with all
existing implementations delegating to the current RSDT-based
implementation.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/acpi.c | 4 | ||||
-rw-r--r-- | src/core/null_acpi.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/acpi.c b/src/core/acpi.c index 7551173..52eb63a 100644 --- a/src/core/acpi.c +++ b/src/core/acpi.c @@ -83,13 +83,13 @@ void acpi_fix_checksum ( struct acpi_header *acpi ) { } /** - * Locate ACPI table + * Locate ACPI table via RSDT * * @v signature Requested table signature * @v index Requested index of table with this signature * @ret table Table, or UNULL if not found */ -userptr_t acpi_find ( uint32_t signature, unsigned int index ) { +userptr_t acpi_find_via_rsdt ( uint32_t signature, unsigned int index ) { struct acpi_header acpi; struct acpi_rsdt *rsdtab; typeof ( rsdtab->entry[0] ) entry; diff --git a/src/core/null_acpi.c b/src/core/null_acpi.c index 90c7848..acca378 100644 --- a/src/core/null_acpi.c +++ b/src/core/null_acpi.c @@ -1,3 +1,3 @@ #include <ipxe/acpi.h> -PROVIDE_ACPI_INLINE ( null, acpi_find_rsdt ); +PROVIDE_ACPI_INLINE ( null, acpi_find ); |