Re: [U-Boot] [PATCH 2/2] efi_loader: Expose ascending efi memory map

2016-04-13 Thread Andreas Färber
Am 11.04.2016 um 23:51 schrieb Alexander Graf: > The EFI memory map does not need to be in a strict order, but 32bit > grub2 does expect it to be ascending. If it's not, it may try to > allocate memory inside the U-Boot data memory region. > > We already sort the memory map in descending order,

[U-Boot] [PATCH 2/2] efi_loader: Expose ascending efi memory map

2016-04-11 Thread Alexander Graf
The EFI memory map does not need to be in a strict order, but 32bit grub2 does expect it to be ascending. If it's not, it may try to allocate memory inside the U-Boot data memory region. We already sort the memory map in descending order, so let's just reverse it when we pass it to a payload.