]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
efi_loader: Always allocate the highest available address
authorAlexander Graf <agraf@suse.de>
Wed, 30 Mar 2016 14:38:29 +0000 (16:38 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2016 21:18:06 +0000 (17:18 -0400)
commit38ce65e1fed1cd5962add9b746ea70e49586b54a
tree4c2477eb5055977ad845cafc4836c1e39ec50249
parent41582e2e77b6fb078db98d7c0765be133a766f81
efi_loader: Always allocate the highest available address

Some EFI applications (grub2) expect that an allocation always returns
the highest available memory address for the given size.

Without this, we may run into situations where the initrd gets allocated
at a lower address than the kernel.

This patch fixes booting in such situations for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_memory.c