mirror of
https://github.com/ipxe/ipxe
synced 2025-12-09 10:50:28 +03:00
[efi] Allow SAN-booted images to be traced via DEBUG=efi_wrap
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -59,6 +59,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|||||||
#include <ipxe/efi/efi_snp.h>
|
#include <ipxe/efi/efi_snp.h>
|
||||||
#include <ipxe/efi/efi_path.h>
|
#include <ipxe/efi/efi_path.h>
|
||||||
#include <ipxe/efi/efi_null.h>
|
#include <ipxe/efi/efi_null.h>
|
||||||
|
#include <ipxe/efi/efi_wrap.h>
|
||||||
#include <ipxe/efi/efi_block.h>
|
#include <ipxe/efi/efi_block.h>
|
||||||
|
|
||||||
/** ACPI table protocol protocol */
|
/** ACPI table protocol protocol */
|
||||||
@@ -861,12 +862,18 @@ static int efi_block_exec ( unsigned int drive,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Wrap calls made by the loaded image (for debugging) */
|
||||||
|
efi_wrap_image ( image );
|
||||||
|
|
||||||
/* Start image */
|
/* Start image */
|
||||||
efirc = bs->StartImage ( image, NULL, NULL );
|
efirc = bs->StartImage ( image, NULL, NULL );
|
||||||
rc = ( efirc ? -EEFI ( efirc ) : 0 );
|
rc = ( efirc ? -EEFI ( efirc ) : 0 );
|
||||||
DBGC ( drive, "EFIBLK %#02x boot image returned: %s\n",
|
DBGC ( drive, "EFIBLK %#02x boot image returned: %s\n",
|
||||||
drive, strerror ( rc ) );
|
drive, strerror ( rc ) );
|
||||||
|
|
||||||
|
/* Remove wrapper */
|
||||||
|
efi_unwrap();
|
||||||
|
|
||||||
err_load_security_violation:
|
err_load_security_violation:
|
||||||
bs->UnloadImage ( image );
|
bs->UnloadImage ( image );
|
||||||
err_load:
|
err_load:
|
||||||
|
|||||||
Reference in New Issue
Block a user