freebsd-nq/stand/efi
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
..
boot1 stand: s/libstand/libsa/g to catch up with rename 2022-04-30 07:34:19 -06:00
fdt EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
gptboot gptboot.efi: Add man page 2021-04-05 23:57:57 -06:00
include stand: Fix a common typo in source code comments 2022-03-28 19:34:30 +02:00
libefi stand: s/libstand/libsa/g to catch up with rename 2022-04-30 07:34:19 -06:00
loader Set mm before passing it to the UEFI firmware 2022-05-21 11:45:41 +01:00
loader_4th
loader_lua
loader_simp
Makefile stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc