opengnsys_ipxe/src/image
Michael Brown 79419a1c69 [efi] Fill in loaded image's DeviceHandle if firmware fails to do so
Some EFI 1.10 implementations (observed with a mid-2011 iMac) seem to
fail to fill in the DeviceHandle for our loaded images.  It is
plausible that these implementations fill in the DeviceHandle only if
loading the image from a device path (rather than directly from a
memory buffer).

Work around this problem by filling in DeviceHandle if the firmware
leaves it empty.

We cannot sensibly fill in FilePath, because we have no way of knowing
whether or not the firmware will treat this as a pointer to be freed
when the image returns.

Reported-by: Curtis Larsen <larsen@dixie.edu>
Tested-by: Curtis Larsen <larsen@dixie.edu>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2014-07-30 16:16:10 +01:00
..
efi_image.c [efi] Fill in loaded image's DeviceHandle if firmware fails to do so 2014-07-30 16:16:10 +01:00
elf.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
embedded.c [prefix] Allow iPXE's own command line to be executed as a script 2011-03-07 22:28:31 +00:00
png.c [png] Add support for PNG images 2014-01-12 22:53:16 +01:00
pnm.c [pnm] Add support for PNM images 2013-11-27 11:27:51 +00:00
script.c [cmdline] Generate command option help text automatically 2013-11-07 17:00:51 +00:00
segment.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00