[PATCH v8 0/5] Add EFI Debug Support Table feature

Ying-Chun Liu (PaulLiu) paulliu at debian.org
Thu Jul 3 08:28:06 CEST 2025


From: "Ying-Chun Liu (PaulLiu)" <paul.liu at 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
V8: Fix casting which causes qemu_arm build failure. Fix selftest. Fix Kconfig
    to enable building on more targets.

Ying-Chun Liu (PaulLiu) (5):
  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

 include/efi_api.h                             |  71 +++++++
 include/efi_loader.h                          |  19 ++
 lib/efi_loader/Kconfig                        |   9 +
 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 |  40 ++++
 10 files changed, 408 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



More information about the U-Boot mailing list