]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Revert "Revert "efi_loader: efi_allocate_pages is too restrictive""
authorStephen Warren <swarren@nvidia.com>
Thu, 30 Aug 2018 21:43:45 +0000 (15:43 -0600)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:29 +0000 (21:55 +0200)
This reverts commit ccfc78b820e5e431c5bd73b072e7536a972e1710.

Now that the underlying issue is fixed, we can revert the revert and hence
restore the original EFI code.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_memory.c

index 0ac4ff554bf06d12adace33c59e5a46f0386c323..4f8cb545ad445eb892fa34b3124f8d5427338829 100644 (file)
@@ -303,7 +303,7 @@ efi_status_t efi_allocate_pages(int type, int memory_type,
        switch (type) {
        case EFI_ALLOCATE_ANY_PAGES:
                /* Any page */
-               addr = efi_find_free_memory(len, gd->start_addr_sp);
+               addr = efi_find_free_memory(len, -1ULL);
                if (!addr) {
                        r = EFI_NOT_FOUND;
                        break;