1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-11-01 19:05:51 +01:00

x86: Show some EFI info with the bdinfo command

It is useful to see some basic EFI info with the command as it forms part
of the information about a board.

Add a hook for this and show the table address as a start.

While here, fix an invalid cast in setup_efi_info(). Note that this
function is using a data structure defined by Linux so we cannot change
it. Also note that ulong is used since this is the standard in U-Boot
(>6k uses), despite there being quite a bit of the more verbose uintptr_t
(930 uses).

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Simon Glass
2021-09-24 18:30:21 -06:00
committed by Heinrich Schuchardt
parent e70be676eb
commit 567dfef2fe
4 changed files with 41 additions and 2 deletions

View File

@@ -29,4 +29,11 @@ void setup_video(struct screen_info *screen_info);
*/
void setup_efi_info(struct efi_info *efi_info);
/**
* efi_show_bdinfo() - Show information about EFI for the 'bdinfo' command
*
* This looks up the EFI table pointer and shows related info
*/
void efi_show_bdinfo(void);
#endif