diff options
| author | Tom Rini <[email protected]> | 2026-07-31 08:55:30 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-07-31 08:55:30 -0600 |
| commit | baa64b2f892890f00a377eac4a3e685472bb56b5 (patch) | |
| tree | 2e8af85f8eabbe5aa8915ba0c3b62c41e3355247 /include | |
| parent | 1fc320fdf8f70f4a617520754cf0a2c1c65ae841 (diff) | |
| parent | d78ba22ab2df094a659a7ffa85e0787037f7e3a7 (diff) | |
Merge tag 'efi-2026-10-rc2-2' of https://git.u-boot-project.org/u-boot/custodians/u-boot-efi
Pull request efi-2026-10-rc2-2
CI: https://git.u-boot-project.org/u-boot/custodians/u-boot-efi/-/pipelines/839
Documentation:
* README: Slightly rephrase env set and env print paragraph
* cmd: gpt: Reinstate gpt setenv
* CONTRIBUTE: replace "as" with "like"
UEFI:
* Unify the memory map output of 'efi mem' and 'efidebug memmap'
* Print ISA-specific and unknown memory attributes
* Rix memory leak in efi_sigstore_parse_siglist
* Fix use of uninitialized guid in variable enumeration loops
Diffstat (limited to 'include')
| -rw-r--r-- | include/efi.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/efi.h b/include/efi.h index b98871fedad..a4c21d7681d 100644 --- a/include/efi.h +++ b/include/efi.h @@ -268,6 +268,9 @@ enum efi_memory_type { #define EFI_MEMORY_CPU_CRYPTO ((u64)0x0000000000080000ULL) /* cryptographically protectable */ #define EFI_MEMORY_HOT_PLUGGABLE \ ((u64)0x0000000000100000ULL) /* hot pluggable */ +#define EFI_MEMORY_ISA_MASK ((u64)0x0FFFF00000000000ULL) /* ISA-specific attributes */ +#define EFI_MEMORY_ISA_SHIFT 44 +#define EFI_MEMORY_ISA_VALID ((u64)0x4000000000000000ULL) /* ISA_MASK field is valid */ #define EFI_MEMORY_RUNTIME ((u64)0x8000000000000000ULL) /* range requires runtime mapping */ #define EFI_MEM_DESC_VERSION 1 @@ -682,6 +685,26 @@ int efi_get_mmap(struct efi_mem_desc **descp, int *sizep, uint *keyp, void efi_show_tables(struct efi_system_table *systab); /** + * efi_show_memmap() - print an EFI memory map + * + * Prints one line per descriptor with the memory type name, the physical + * start and end address and the attributes as a '|'-separated list of + * mnemonics. The ISA-specific attribute field is printed as ISA=<value> + * when EFI_MEMORY_ISA_VALID is set, and any remaining bits without a + * mnemonic are printed as a hexadecimal value. + * + * The virtual addresses of the descriptors are not shown: the map is + * identity mapped before SetVirtualAddressMap() is called, so the field + * carries no information at this point. + * + * @map: memory map to print + * @map_size: size of the memory map in bytes + * @desc_size: size of a single descriptor in bytes + */ +void efi_show_memmap(struct efi_mem_desc *map, efi_uintn_t map_size, + efi_uintn_t desc_size); + +/** * efi_get_basename() - Get the default filename to use when loading * * E.g. this function returns BOOTAA64.EFI for an aarch target |
