]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: use named constant for efi_dp_from_mem()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 26 Dec 2018 21:23:00 +0000 (22:23 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 13 Feb 2019 08:40:05 +0000 (09:40 +0100)
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>
cmd/bootefi.c

index 38679ffc56a95af3737daacf16240b3fd82755e2..cc0f2923dcfa77cf390129c6cbbc3b50747e2d6d 100644 (file)
@@ -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