diff options
author | Heinrich Schuchardt | 2021-04-02 22:16:22 +0200 |
---|---|---|
committer | Heinrich Schuchardt | 2021-04-10 12:00:24 +0200 |
commit | 9933eb47e5ad8ee96fd45e16df1df291c87c36ea (patch) | |
tree | 34a5ae88c27f5812d827207dd4dc6141a66f4484 /include/efi.h | |
parent | d473063d9de7041dcafd2fbedf8f33eb3eff51f5 (diff) |
efi_loader: EFI_UNACCEPTED_MEMORY_TYPE
* UEFI spec 2.9 introduced a new memory type EFI_UNACCEPTED_MEMORY_TYPE.
Add it to enum EFI_MEMORY_TYPE.
* Add missing EFI_MEMORY_CPU_CRYPTO constant
* Improve description of EFI_PERSISTENT_MEMORY_TYPE
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/efi.h')
-rw-r--r-- | include/efi.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/efi.h b/include/efi.h index 503fbf060bf..6417a9b8c53 100644 --- a/include/efi.h +++ b/include/efi.h @@ -180,9 +180,13 @@ enum efi_mem_type { */ EFI_PAL_CODE, /* - * Non-volatile memory. + * Byte addressable non-volatile memory. */ EFI_PERSISTENT_MEMORY_TYPE, + /* + * Unaccepted memory must be accepted by boot target before usage. + */ + EFI_UNACCEPTED_MEMORY_TYPE, EFI_MAX_MEMORY_TYPE, }; @@ -201,6 +205,7 @@ enum efi_mem_type { ((u64)0x0000000000010000ULL) /* higher reliability */ #define EFI_MEMORY_RO ((u64)0x0000000000020000ULL) /* read-only */ #define EFI_MEMORY_SP ((u64)0x0000000000040000ULL) /* specific-purpose memory (SPM) */ +#define EFI_MEMORY_CPU_CRYPTO ((u64)0x0000000000080000ULL) /* cryptographically protectable */ #define EFI_MEMORY_RUNTIME ((u64)0x8000000000000000ULL) /* range requires runtime mapping */ #define EFI_MEM_DESC_VERSION 1 |