From: "Ying-Chun Liu (PaulLiu)" <paul....@linaro.org> I implemented the UEFI Specification version 2.10, specifically focusing on the functionality described in Section 18.4, which details the EFI Debug Support Table feature. This implementation ensures support for hardware-assisted debugging and provides a standardized mechanism for debuggers to discover and interact with system-level debug resources.
V2: add Kconfig options to turn on/off this feature. V3: Fix the way of removing debug_image_info. V4: Fix efi_realloc return failure code and efi_alloc_aligned_pages() for system_table_pointer. V5: Fix function comments and move the code into a separate module. V6: Fix error handling. Refine the code. V7: Add unittest Ying-Chun Liu (PaulLiu) (6): efi: add EFI_SYSTEM_TABLE_POINTER for debug efi: add EFI_DEBUG_IMAGE_INFO_TABLE for debug lib: efi_loader: efi_memory.c: add efi_realloc() for realloc memory efi: add EFI_DEBUG_IMAGE_INFO for debug efi: selftest: add selftest for EFI_DEBUG_SUPPORT configs: sandbox_defconfig: enable CONFIG_EFI_DEBUG_SUPPORT configs/sandbox_defconfig | 1 + include/efi_api.h | 71 +++++++ include/efi_loader.h | 19 ++ lib/efi_loader/Kconfig | 8 + lib/efi_loader/Makefile | 1 + lib/efi_loader/efi_boottime.c | 7 + lib/efi_loader/efi_debug_support.c | 183 ++++++++++++++++++ lib/efi_loader/efi_memory.c | 58 ++++++ lib/efi_loader/efi_setup.c | 18 ++ lib/efi_selftest/Makefile | 2 + lib/efi_selftest/efi_selftest_debug_support.c | 58 ++++++ 11 files changed, 426 insertions(+) create mode 100644 lib/efi_loader/efi_debug_support.c create mode 100644 lib/efi_selftest/efi_selftest_debug_support.c -- 2.39.5