[efi] Wrap any images loaded by our wrapped image
authorMichael Brown <mcb30@ipxe.org>
Fri, 29 Aug 2014 12:10:18 +0000 (13:10 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 29 Aug 2014 12:10:18 +0000 (13:10 +0100)
commit0cc2f42f467e27945070a4036a6a1f928bc7018f
tree01c32a6d5c77eb906547a875701473e29bba6e85
parent2cb95c902859a59a17123d42097cbe663e6ee62e
[efi] Wrap any images loaded by our wrapped image

Propagate our modified EFI system table to any images loaded by the
image that we wrap, thereby allowing us to observe boot services calls
made by all subsequent EFI images.

Also show details of intercepted ExitBootServices() calls.  When
wrapping is used, exiting boot services will almost certainly fail,
but this at least allows us to see when it happens.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/image/efi_image.c
src/include/ipxe/efi/efi_wrap.h
src/include/ipxe/errfile.h
src/interface/efi/efi_wrap.c