The code for this patch series is also at g...@github.com:lzeng14/edk2.git branch FindAcpiTableBySignature_UefiLib
https://bugzilla.tianocore.org/show_bug.cgi?id=967 Request to add a library function for GetAcpiTable() in order to get ACPI table using signature as input. After evaluation, we found there are many duplicated code to find ACPI table by signature in different modules. This patch adds new EfiFindAcpiTableBySignature() API in UefiLib for the request and removing the duplicated code. Cc: Younas khan <pmdyounaskhan...@gmail.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Liming Gao <liming....@intel.com> Cc: Jiewen Yao <jiewen....@intel.com> Cc: Jian J Wang <jian.j.w...@intel.com> Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Dandan Bi <dandan...@intel.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Laszlo Ersek <ler...@redhat.com> Star Zeng (6): MdePkg UefiLib: Add new EfiFindAcpiTableBySignature() API IntelSiliconPkg IntelVTdDxe: Use new EfiFindAcpiTableBySignature() MdeModulePkg S3SaveStateDxe: Use new EfiFindAcpiTableBySignature() PcAtChipsetPkg PcRtc: Use new EfiFindAcpiTableBySignature() ShellPkg DpDynamicCommand: Use new EfiFindAcpiTableBySignature() UefiCpuPkg PiSmmCpuDxeSmm: Use new EfiFindAcpiTableBySignature() .../Feature/VTd/IntelVTdDxe/DmarAcpiTable.c | 136 +------------ .../Acpi/S3SaveStateDxe/AcpiS3ContextSave.c | 208 +------------------ .../Acpi/S3SaveStateDxe/S3SaveStateDxe.inf | 3 +- MdePkg/Include/Library/UefiLib.h | 17 ++ MdePkg/Library/UefiLib/Acpi.c | 226 +++++++++++++++++++++ MdePkg/Library/UefiLib/UefiLib.inf | 3 + PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c | 80 +------- ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c | 136 +------------ ShellPkg/DynamicCommand/DpDynamicCommand/Dp.h | 1 - ShellPkg/DynamicCommand/DpDynamicCommand/Dp.uni | 1 - ShellPkg/DynamicCommand/DpDynamicCommand/DpApp.inf | 2 - .../DpDynamicCommand/DpDynamicCommand.inf | 2 - UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 4 +- UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 84 +------- UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfileInternal.h | 3 +- 15 files changed, 266 insertions(+), 640 deletions(-) create mode 100644 MdePkg/Library/UefiLib/Acpi.c -- 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel