Re: [PATCH v2 04/14] efi: add grub_efi_get_ram_base() function for arm*

2017-08-08 Thread Leif Lindholm
On Thu, Aug 03, 2017 at 03:30:40PM +, Vladimir 'phcoder' Serbinenko wrote: > Any reason to use plain error numbers without grub_error? Well, no. In the way I'm using it, it will cascade down to a grub_error (GRUB_ERR_OUT_OF_MEMORY, N_("out of memory")); on failure. Do we need a specific one

Re: [PATCH v2 04/14] efi: add grub_efi_get_ram_base() function for arm*

2017-08-03 Thread Vladimir 'phcoder' Serbinenko
Any reason to use plain error numbers without grub_error? Le Thu, Aug 3, 2017 à 12:09 PM, Leif Lindholm a écrit : > Since ARM platforms do not have a common memory map, add a helper > function that finds the lowest address region with the EFI_MEMORY_WB > attribute set in the UEFI memory map. > >

[PATCH v2 04/14] efi: add grub_efi_get_ram_base() function for arm*

2017-08-03 Thread Leif Lindholm
Since ARM platforms do not have a common memory map, add a helper function that finds the lowest address region with the EFI_MEMORY_WB attribute set in the UEFI memory map. Required for the arm/arm64 linux loader to restrict the initrd location to where it will be accessible by the kernel at runti