efi: add EFI_SYSTEM_TABLE_POINTER for debug
authorYing-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Thu, 3 Jul 2025 06:28:07 +0000 (07:28 +0100)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 3 Jul 2025 09:25:47 +0000 (12:25 +0300)
commitaaf7be96c2c14aa190d39e50fa3606389eafda8e
tree5fdd5ee971be982aabad64e39b12d3de0d069dd4
parent46a564d689b61660919f11be332d47a206ed24d5
efi: add EFI_SYSTEM_TABLE_POINTER for debug

Add EFI_SYSTEM_TABLE_POINTER structure for remote debugger to locate
the address of EFI_SYSTEM_TABLE.

This feature is described in UEFI SPEC version 2.10. Section 18.4.2.
The implementation ensures support for hardware-assisted debugging and
provides a standardized mechanism for debuggers to discover the EFI
system table.

Cc: Peter Robinson <pbrobinson@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> # change memset(systab_pointer, 0 ...) -> systab_pointer->crc32 = 0;
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/efi_api.h
include/efi_loader.h
lib/efi_loader/Kconfig
lib/efi_loader/Makefile
lib/efi_loader/efi_debug_support.c [new file with mode: 0644]
lib/efi_loader/efi_setup.c