diff options
| author | Dongyan Qian <qiandongyan@loongson.cn> | 2026-07-13 11:47:38 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-07-16 10:10:30 +0300 |
| commit | 9e83101fdfdbe97c9d5b9586b69a8444bb49584b (patch) | |
| tree | d8f954c1d80aad9c4c2db3dedd321a9f34154131 /MdeModulePkg/Library/PiDxeS3BootScriptLib | |
| parent | 1dc6b5e3dd6dfb9da2d1a8b6cc3d3ef851765eae (diff) | |
| download | edk2-9e83101fdfdbe97c9d5b9586b69a8444bb49584b.tar.xz | |
DynamicTablesPkg/Smbios: Use EFIAPI for extended callbacks
The SMBIOS_TABLE_GENERATOR_BUILD_TABLEEX and
SMBIOS_TABLE_GENERATOR_FREE_TABLEEX callback types do not specify EFIAPI.
The Type 37 implementations specify it, while the other extended callback
implementations follow the omission in the shared types.
For X64 GCC builds, BaseTools/Conf/tools_def.template adds
-DEFIAPI=__attribute__((ms_abi)). Therefore, callbacks marked with EFIAPI
use the Microsoft x64 ABI, while unannotated callback types use the
compiler default ABI. If the two sides differ, the caller and callee use
different argument registers, and GCC rejects the function pointer
assignment.
This mismatch remained hidden while the standalone Type 37 generator was
built only for AARCH64. Moving the SMBIOS generators to the common
component section adds X64 build coverage and exposes it.
Add EFIAPI to the extended callback types and all matching implementations.
This follows the ACPI generator callback convention and provides the ABI
prerequisite for expanding the SMBIOS standalone build coverage.
Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib')
0 files changed, 0 insertions, 0 deletions
