grub/grub-core/loader
Daniel Kiper f2b6c20a25 multiboot2: Do not pass memory maps to image if EFI boot services are enabled
If image requested EFI boot services then skip multiboot2 memory maps.
Main reason for not providing maps is because they will likely be
invalid. We do a few allocations after filling them, e.g. for relocator
needs. Usually we do not care as we would have finished boot services.
If we keep boot services then it is easier/safer to not provide maps.
However, if image needs memory maps and they are not provided by bootloader
then it should get itself just before ExitBootServices() call.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
2016-10-27 15:55:00 +02:00
..
arm Use full initializer for initrd_ctx to avoid fatal warnings with older GCC 2014-10-14 20:12:15 +04:00
arm64 xen_boot: Remove obsolete module type distinctions. 2016-01-22 10:18:47 +01:00
efi chainloader: fix resoource leak 2015-06-26 09:25:30 +03:00
i386 xen_file: Fix invalid payload size 2016-03-11 10:26:51 +01:00
ia64/efi Use full initializer for initrd_ctx to avoid fatal warnings with older GCC 2014-10-14 20:12:15 +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 loader/linux: Make trailer initrd entry aligned again. 2015-07-20 19:07:20 +03: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 i386/relocator: Add grub_relocator64_efi relocator 2016-10-27 15:53:43 +02:00
multiboot_elfxx.c loader: Unintended sign extension 2016-01-15 19:18:05 +03:00
multiboot_mbi2.c multiboot2: Do not pass memory maps to image if EFI boot services are enabled 2016-10-27 15:55:00 +02: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