summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuo Dong <guo.dong@intel.com>2025-07-28 22:41:01 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-07-29 17:50:45 +0000
commit3b48f8ccab3ff84653c2b982bd03fb60f390edf3 (patch)
treecb426684a6f8f52df0fd0ee67e97fa6d26452aef
parent0d82e48221747cc17ab48be9caf295d9494fd9ed (diff)
downloadedk2-3b48f8ccab3ff84653c2b982bd03fb60f390edf3.tar.gz
edk2-3b48f8ccab3ff84653c2b982bd03fb60f390edf3.zip
UefiPayloadPkg: Fix calling convention
When register a root SMI handler, it is expected to use windows calling convention for the SMI handler. This patch adds missing EFIAPI for the SMI handler SmmSwDispatcher to avoid potential issue from Linux build. Signed-off-by: Guo Dong <guo.dong@intel.com>
-rw-r--r--UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.c b/UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.c
index 8a076e16e6..155ab79f0e 100644
--- a/UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.c
+++ b/UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.c
@@ -87,6 +87,7 @@ FindContextByDispatchHandle (
**/
EFI_STATUS
+EFIAPI
SmmSwDispatcher (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *RegisterContext,