From 0cc2f42f467e27945070a4036a6a1f928bc7018f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 29 Aug 2014 13:10:18 +0100 Subject: [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 --- src/image/efi_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/image') diff --git a/src/image/efi_image.c b/src/image/efi_image.c index ce1d4b83..83da9d9b 100644 --- a/src/image/efi_image.c +++ b/src/image/efi_image.c @@ -227,7 +227,7 @@ static int efi_image_exec ( struct image *image ) { efi_snp_release(); /* Wrap calls made by the loaded image (for debugging) */ - efi_wrap ( handle, loaded.image ); + efi_wrap ( handle ); /* Start the image */ if ( ( efirc = bs->StartImage ( handle, NULL, NULL ) ) != 0 ) { -- cgit v1.2.3-55-g7522