diff options
author | Michael Brown <mcb30@ipxe.org> | 2020-10-01 15:44:05 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2020-10-01 15:44:05 +0100 |
commit | 7151fa3ffac09c316e2f7c2d3d384f1417325c0f (patch) | |
tree | 91ada3c1f3a01e451da68b59e83347a10f14772d /src/include/ipxe/efi | |
parent | 8344803c934c71c7eebb6b706d73a8c00d57b713 (diff) | |
download | ipxe-7151fa3ffac09c316e2f7c2d3d384f1417325c0f.zip ipxe-7151fa3ffac09c316e2f7c2d3d384f1417325c0f.tar.gz ipxe-7151fa3ffac09c316e2f7c2d3d384f1417325c0f.tar.bz2 |
[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/ipxe/efi')
-rw-r--r-- | src/include/ipxe/efi/efi_wrap.h | 1 |
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 d8ed1a5..6c7ccf2 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 */ |