From: Simon Glass Date: Wed, 29 Dec 2021 18:57:53 +0000 (-0700) Subject: x86: efi: Show the system-table revision X-Git-Tag: v2025.01-rc5-pxa1908~1591^2~2^2~1 X-Git-Url: http://git.dujemihanovic.xyz/projects?a=commitdiff_plain;h=40b172314bb68886fce409efbd4db7cbe9d0926a;p=u-boot.git x86: efi: Show the system-table revision Show the revision of this table as it can be important. Also update the 'efi table' entry to show the actual address of the EFI table rather than our table that points to it. This saves a step and the intermediate table has nothing else in it. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- diff --git a/arch/x86/cpu/efi/payload.c b/arch/x86/cpu/efi/payload.c index 3a9f7d7286..04ce1880b4 100644 --- a/arch/x86/cpu/efi/payload.c +++ b/arch/x86/cpu/efi/payload.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -296,8 +297,14 @@ void setup_efi_info(struct efi_info *efi_info) void efi_show_bdinfo(void) { struct efi_entry_systable *table = NULL; + struct efi_system_table *sys_table; int size, ret; ret = efi_info_get(EFIET_SYS_TABLE, (void **)&table, &size); - bdinfo_print_num_l("efi_table", (ulong)table); + if (!ret) { + bdinfo_print_num_l("efi_table", table->sys_table); + sys_table = (struct efi_system_table *)(uintptr_t) + table->sys_table; + bdinfo_print_num_l(" revision", sys_table->fw_revision); + } }