summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-12-26 22:23:00 +0100
committerAlexander Graf <agraf@suse.de>2019-02-13 09:40:05 +0100
commit0a76ba65568435e3cf630e146c4a630e9ee8db1f (patch)
tree1992b9e182eb89a7dd150d9423cee085ab525183 /cmd
parent13dd6665ed18f72380ca596931d609bc108d4b82 (diff)
downloadu-boot-0a76ba65568435e3cf630e146c4a630e9ee8db1f.tar.gz
u-boot-0a76ba65568435e3cf630e146c4a630e9ee8db1f.tar.bz2
u-boot-0a76ba65568435e3cf630e146c4a630e9ee8db1f.zip
efi_loader: use named constant for efi_dp_from_mem()
When calling efi_dp_from_mem() use a named constant for the memory type. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bootefi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index 38679ffc56..cc0f2923dc 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -386,7 +386,7 @@ static efi_status_t do_bootefi_exec(void *efi,
if (!device_path && !image_path) {
printf("WARNING: using memory device/image path, this may confuse some payloads!\n");
/* actual addresses filled in after efi_load_pe() */
- memdp = efi_dp_from_mem(0, 0, 0);
+ memdp = efi_dp_from_mem(EFI_RESERVED_MEMORY_TYPE, 0, 0);
device_path = image_path = memdp;
/*
* Grub expects that the device path of the loaded image is