summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2020-10-01 16:44:05 +0200
committerMichael Brown2020-10-01 16:44:05 +0200
commit7151fa3ffac09c316e2f7c2d3d384f1417325c0f (patch)
tree91ada3c1f3a01e451da68b59e83347a10f14772d /src/include
parent[efi] Disconnect controllers before uninstalling EFI_USB_IO_PROTOCOL (diff)
downloadipxe-7151fa3ffac09c316e2f7c2d3d384f1417325c0f.tar.gz
ipxe-7151fa3ffac09c316e2f7c2d3d384f1417325c0f.tar.xz
ipxe-7151fa3ffac09c316e2f7c2d3d384f1417325c0f.zip
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/efi/efi_wrap.h1
1 files changed, 1 insertions, 0 deletions
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 <ipxe/efi/efi.h>
+extern EFI_SYSTEM_TABLE * efi_wrap_systab ( void );
extern void efi_wrap ( EFI_HANDLE handle );
#endif /* _IPXE_EFI_WRAP_H */