]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: add EFI_MEMORY_SP to memory attributes
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 19 May 2020 05:20:46 +0000 (07:20 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 21 May 2020 08:00:17 +0000 (10:00 +0200)
The UEFI 2.8 specification has introduced the EFI_MEMORY_SP memory
attribute. Add it to the 'efidebug memmap' and 'efi mem' commands.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/efi.c
cmd/efidebug.c
include/efi.h

index 9aeb913ff37e8447c778d216351fa137be0becb6..b3a3bf828215e82a9dd0bcb384f4bada6cb3bfd0 100644 (file)
--- a/cmd/efi.c
+++ b/cmd/efi.c
@@ -44,6 +44,7 @@ static struct attr_info {
        { EFI_MEMORY_NV, "non-volatile" },
        { EFI_MEMORY_MORE_RELIABLE, "higher reliability" },
        { EFI_MEMORY_RO, "read-only" },
+       { EFI_MEMORY_SP, "specific purpose" },
        { EFI_MEMORY_RUNTIME, "needs runtime mapping" }
 };
 
index 703dab0c20d12b9e4199b9b20460085370ad6470..32430e62f0ac90a2475cb7903f64d97b019d083a 100644 (file)
@@ -414,6 +414,7 @@ static const struct efi_mem_attrs {
        {EFI_MEMORY_NV, "NV"},
        {EFI_MEMORY_MORE_RELIABLE, "REL"},
        {EFI_MEMORY_RO, "RO"},
+       {EFI_MEMORY_SP, "SP"},
        {EFI_MEMORY_RUNTIME, "RT"},
 };
 
index e12697a5d5b0113924db550b4720b21697b2729c..f986aad8777757c2e1deef4a9c0c847d37334f19 100644 (file)
@@ -196,6 +196,7 @@ enum efi_mem_type {
 #define EFI_MEMORY_MORE_RELIABLE \
                                ((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_RUNTIME     ((u64)0x8000000000000000ULL)    /* range requires runtime mapping */
 #define EFI_MEM_DESC_VERSION   1