aboutsummaryrefslogtreecommitdiff
path: root/include/efi.h
diff options
context:
space:
mode:
authorMian Yousaf Kaukab2016-09-05 23:59:22 +0200
committerTom Rini2016-09-07 08:49:07 -0400
commit4c02c11de89388db29ac413b09d1ab5ae63f3ecb (patch)
treed24ccafe4a897abd47a35ffb0bc9149e6462ef4e /include/efi.h
parentbac17b78daceeba1af2e1d8cd204ee460c71c93a (diff)
efi_loader: provide efi_mem_desc version
Provide version of struct efi_mem_desc in efi_get_memory_map(). EFI_BOOT_SERVICES.GetMemoryMap() in UEFI specification v2.6 defines memory descriptor version to 1. Linux kernel also expects descriptor version to be 1 and prints following warning during boot if its not: Unexpected EFI_MEMORY_DESCRIPTOR version 0 Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@gmail.com>
Diffstat (limited to 'include/efi.h')
-rw-r--r--include/efi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/efi.h b/include/efi.h
index 83de2d479e9..5a3b8cf69ac 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -159,6 +159,8 @@ struct efi_mem_desc {
u64 attribute;
};
+#define EFI_MEMORY_DESCRIPTOR_VERSION 1
+
/* Allocation types for calls to boottime->allocate_pages*/
#define EFI_ALLOCATE_ANY_PAGES 0
#define EFI_ALLOCATE_MAX_ADDRESS 1