lkml.org 
[lkml]   [2014]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] efilinux: set ext_ramdisk_* for huge initrd
On Tue, 17 Jun, at 11:41:09PM, Yinghai Lu wrote:
> We could load it high if it is more than 2G when kernel support
> LOAD_ABOVE_4G.
>
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
>
> ---
> loaders/bzimage/bzimage.c | 9 ++++++++-
> loaders/bzimage/bzimage.h | 8 ++++++--
> 2 files changed, 14 insertions(+), 3 deletions(-)
>
> Index: efilinux/loaders/bzimage/bzimage.c
> ===================================================================
> --- efilinux.orig/loaders/bzimage/bzimage.c
> +++ efilinux/loaders/bzimage/bzimage.c
> @@ -130,7 +130,9 @@ static void parse_initrd(EFI_LOADED_IMAG
> if (err != EFI_SUCCESS)
> goto close_handles;
>
> - if ((UINTN)addr > boot_params->hdr.ramdisk_max) {
> + if ((boot_params->hdr.version < 0x20c ||
> + !(boot_params->hdr.xloadflags & (1<<1))) &&
> + (UINTN)addr > boot_params->hdr.ramdisk_max) {

Could you please add a #define for the xloadflags bit?

--
Matt Fleming, Intel Open Source Technology Center


\
 
 \ /
  Last update: 2014-06-25 23:41    [W:0.050 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site