mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi: stub: Pass EFI system table address to U-Boot payload
This updates the EFI stub codes to pass UEFI BIOS's system table address to U-Boot payload so that U-Boot can utilize it. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
aac79251c7
commit
cbe503fbc1
2 changed files with 14 additions and 0 deletions
|
@ -248,6 +248,7 @@ enum efi_entry_t {
|
|||
EFIET_END, /* Signals this is the last (empty) entry */
|
||||
EFIET_MEMORY_MAP,
|
||||
EFIET_GOP_MODE,
|
||||
EFIET_SYS_TABLE,
|
||||
|
||||
/* Number of entries */
|
||||
EFIET_MEMORY_COUNT,
|
||||
|
@ -338,6 +339,15 @@ struct efi_entry_gopmode {
|
|||
} info[];
|
||||
};
|
||||
|
||||
/**
|
||||
* struct efi_entry_systable - system table passed to U-Boot
|
||||
*
|
||||
* @sys_table: EFI system table address
|
||||
*/
|
||||
struct efi_entry_systable {
|
||||
efi_physical_addr_t sys_table;
|
||||
};
|
||||
|
||||
static inline struct efi_mem_desc *efi_get_next_mem_desc(
|
||||
struct efi_entry_memmap *map, struct efi_mem_desc *desc)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue