opnsense-src/stand/efi/loader
Andrew Turner 0d6600b579 Set mm before passing it to the UEFI firmware
When reading the UEFI memory map we pass in a pointer to the memory to
hold the map. Unfortunately it wasn't initialised before the first use
so clang decided it was undefined behaviour so the entire loop was
removed. This leads to everything in bi_load after this to also be
removed as dead code.

The next function after bi_load in the binary is efi_copy_init. The
above caused us to enter efi_copy_init with a return address of the
start of the function. Because of this it would enter an infinite
loop of calling the function, allocating memory, then returning to
the start of the function.

PR:		264021
2022-05-21 11:45:41 +01:00
..
arch Don't sync the I/D caches when they are coherent 2021-12-20 13:58:13 +00:00
autoload.c loader: fdt: Add fdt_is_setup function 2019-04-25 20:08:43 +00:00
bootinfo.c Set mm before passing it to the UEFI firmware 2022-05-21 11:45:41 +01:00
conf.c Loader: support booting OS from memory disk (MD) 2021-04-07 13:40:57 -05:00
copy.c efi: switch boot_services_gone to boot_services_active 2021-11-04 10:07:54 -06:00
efi_main.c efi loader: Call tslog_init from efi_main 2021-09-25 12:06:07 -07:00
efiserialio.c Fix the efi serial console in the Arm models. 2020-06-10 09:31:37 +00:00
framebuffer.c loader.efi: to preserve heap space, use AllocatePages() for shadow_fb 2021-12-22 11:39:28 +02:00
framebuffer.h loader.efi: reworked framebuffer setup 2021-01-12 13:07:27 +02:00
loader_efi.h amd64 UEFI loader: stop copying staging area to 2M physical 2021-08-08 22:52:29 +03:00
main.c Add support for getting early entropy from UEFI 2022-02-17 13:01:11 -08:00
Makefile stand/efi: Pass --no-dynamic-linker to ld.bfd >= 2.34. 2022-02-02 12:18:43 -08:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
version