PC-BSD/trueos 9f2086fstand/efi/loader/arch/arm exec.c, stand/efi/loader/arch/i386 efimd.c elf32_freebsd.c

MFC r344560, r344718

r344560:
stand: Remove unused i386 EFI MD bits

r328169 removed the copy of bootinfo that would've made this somewhat
functional. However, this is irrelevant- earlier work in r292338 was done to
exit boot services in the MI bi_load() rather than having N copies of the
GetMemoryMap/ExitBootServices dance.

i386 never quite caught up to that; ldr_enter was still being called but
the prereq for that, ldr_bootinfo, was no longer. As a consequence, this
ExitBootServices() was being called with a mapkey=0, clearly bogus, and
reportedly breaking the boot in some instances.

r344718:
EFI: don't call printf after ExitBootServices, since it uses Boot Services

ExitBootServices terminates all boot services including console access.
Attempting to call printf afterwards can result in a crash, depending on the
implementation.

Move any printf statements to before we call bi_load, and remove any that
depend on calling bi_load first.
DeltaFile
+0-142stand/efi/loader/arch/i386/efimd.c
+8-5stand/efi/loader/arch/arm/exec.c
+7-5stand/efi/loader/arch/i386/elf32_freebsd.c
+0-1stand/efi/loader/arch/i386/Makefile.inc
+15-1534 files

UnifiedSplitRaw