Message ID | 1530157086-4538-4-git-send-email-bmeng.cn@gmail.com |
---|---|
State | Accepted |
Commit | 47cae019efb39c649015b3534344e50125e9f1d9 |
Delegated to: | Bin Meng |
Headers | show |
Series | [U-Boot,v3,1/6] x86: efi_loader: Build EFI memory map per E820 table | expand |
On 06/28/2018 05:38 AM, Bin Meng wrote: > Output ACPI configuration table if it exists. > > Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
On Thu, Jun 28, 2018 at 1:48 PM, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote: > On 06/28/2018 05:38 AM, Bin Meng wrote: >> Output ACPI configuration table if it exists. >> >> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> > > Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> applied to u-boot-x86, thanks!
diff --git a/lib/efi_loader/helloworld.c b/lib/efi_loader/helloworld.c index 046b46a..3b8de5b 100644 --- a/lib/efi_loader/helloworld.c +++ b/lib/efi_loader/helloworld.c @@ -14,6 +14,7 @@ static const efi_guid_t loaded_image_guid = LOADED_IMAGE_GUID; static const efi_guid_t fdt_guid = EFI_FDT_GUID; +static const efi_guid_t acpi_guid = EFI_ACPI_TABLE_GUID; static const efi_guid_t smbios_guid = SMBIOS_TABLE_GUID; static int hw_memcmp(const void *buf1, const void *buf2, size_t length) @@ -79,6 +80,9 @@ efi_status_t EFIAPI efi_main(efi_handle_t handle, if (!hw_memcmp(&systable->tables[i].guid, &fdt_guid, sizeof(efi_guid_t))) con_out->output_string(con_out, L"Have device tree\n"); + if (!hw_memcmp(&systable->tables[i].guid, &acpi_guid, + sizeof(efi_guid_t))) + con_out->output_string(con_out, L"Have ACPI 2.0 table\n"); if (!hw_memcmp(&systable->tables[i].guid, &smbios_guid, sizeof(efi_guid_t))) con_out->output_string(con_out, L"Have SMBIOS table\n");
Output ACPI configuration table if it exists. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> --- Changes in v3: - Use UEFI spec 2.7 provided ACPI table name Changes in v2: - new patch "output ACPI configuration table" lib/efi_loader/helloworld.c | 4 ++++ 1 file changed, 4 insertions(+)