grub/grub-core/loader
Leif Lindholm 25133dfcda efi: Restrict arm/arm64 linux loader initrd placement
The 32-bit arm Linux kernel is built as a zImage, which self-decompresses
down to near start of RAM. In order for an initrd/initramfs to be
accessible, it needs to be placed within the first ~768MB of RAM.
The initrd loader built into the kernel EFI stub restricts this down to
512MB for simplicity - so enable the same restriction in grub.

For arm64, the requirement is within a 1GB aligned 32GB window also
covering the (runtime) kernel image. Since the EFI stub loader itself
will attempt to relocate to near start of RAM, force initrd to be loaded
completely within the first 32GB of RAM.

Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2020-09-21 13:19:10 -04:00
..
arm arm: Delete unused efi support from loader/arm 2020-09-21 13:19:10 -04:00
arm64 efi: Restrict arm/arm64 linux loader initrd placement 2020-09-21 13:19:10 -04:00
efi efi/fdt: Set address/size cells to 2 for empty tree 2020-09-21 13:19:10 -04:00
i386 i386/linux: Add support for ext_lfb_base 2020-09-21 13:19:10 -04:00
ia64/efi Remove grub_efi_allocate_pages. 2020-09-21 12:02:37 -04:00
mips Use full initializer for initrd_ctx to avoid fatal warnings with older GCC 2014-10-14 20:12:15 +04:00
powerpc/ieee1275 Use full initializer for initrd_ctx to avoid fatal warnings with older GCC 2014-10-14 20:12:15 +04:00
sparc64/ieee1275 OBP available region contains grub. Start at grub_phys_end. 2016-02-12 23:16:03 +01:00
aout.c Implement automatic module license checking according to new GNU 2011-04-11 23:01:51 +02:00
linux.c Make TPM errors less fatal 2016-10-13 14:01:52 -07:00
lzss.c Add LZSS Mach-O support (needed for new xnu kernelcache). 2012-02-29 13:26:13 +01:00
macho.c Add missing license section in macbless.mod and macho.mod. 2013-12-18 17:11:11 +01:00
macho32.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
macho64.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
machoXX.c Simplify few strings. 2013-05-07 11:44:15 +02:00
multiboot.c Fix compilation for x86_64-efi. 2020-09-21 12:02:37 -04:00
multiboot_elfxx.c multiboot_elfxx.c: Fix compilation by fixing undeclared variable 2020-09-21 13:19:10 -04:00
multiboot_mbi2.c multiboot: disentangle multiboot and multiboot2. 2020-09-21 12:02:37 -04:00
xnu.c loader/xnu: fix memory leak. 2015-01-27 22:12:06 +03:00
xnu_resume.c * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images. 2013-10-28 14:25:22 +01:00