From 7151fa3ffac09c316e2f7c2d3d384f1417325c0f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 1 Oct 2020 15:44:05 +0100 Subject: [efi] Allow DEBUG=efi_wrap to be used independently of a loaded image Allow temporary debugging code to call efi_wrap_systab() to obtain a pointer to the wrapper EFI system table. This can then be used to e.g. forcibly overwrite the boot services table pointer used by an already loaded and running UEFI driver, in order to trace calls made by that driver. Signed-off-by: Michael Brown --- src/include/ipxe/efi/efi_wrap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/ipxe/efi') diff --git a/src/include/ipxe/efi/efi_wrap.h b/src/include/ipxe/efi/efi_wrap.h index d8ed1a5cc..6c7ccf2e4 100644 --- a/src/include/ipxe/efi/efi_wrap.h +++ b/src/include/ipxe/efi/efi_wrap.h @@ -10,6 +10,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include +extern EFI_SYSTEM_TABLE * efi_wrap_systab ( void ); extern void efi_wrap ( EFI_HANDLE handle ); #endif /* _IPXE_EFI_WRAP_H */ -- cgit v1.2.3-55-g7522