From 1c8ca9a012ce19a1096625ef9e810036e8346827 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Tue, 1 Nov 2016 10:48:18 +0800 Subject: [PATCH] UefiCpuPkg/LocalApicLib: Add EFIAPI for GetProcessorLocationByApicId() We need to add EFIAPI for all interface service including library API. Contributed-under: TianoCore Contribution Agreement 1.0 Cc: Leo Duran Cc: Michael Kinney Cc: Feng Tian Signed-off-by: Jeff Fan Reviewed-by: Michael Kinney Reviewed-by: Leo Duran --- UefiCpuPkg/Include/Library/LocalApicLib.h | 1 + UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 1 + UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 1 + 3 files changed, 3 insertions(+) diff --git a/UefiCpuPkg/Include/Library/LocalApicLib.h b/UefiCpuPkg/Include/Library/LocalApicLib.h index a1611f17dd..fc980bc1f2 100644 --- a/UefiCpuPkg/Include/Library/LocalApicLib.h +++ b/UefiCpuPkg/Include/Library/LocalApicLib.h @@ -424,6 +424,7 @@ GetApicMsiValue ( @param[out] Thread Returns the processor thread ID. **/ VOID +EFIAPI GetProcessorLocationByApicId ( IN UINT32 InitialApicId, OUT UINT32 *Package OPTIONAL, diff --git a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c index 8384913bf4..4064049807 100644 --- a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c @@ -955,6 +955,7 @@ GetApicMsiValue ( @param[out] Thread Returns the processor thread ID. **/ VOID +EFIAPI GetProcessorLocationByApicId ( IN UINT32 InitialApicId, OUT UINT32 *Package OPTIONAL, diff --git a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c index 1e3c03905c..9720d26e60 100644 --- a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c @@ -1050,6 +1050,7 @@ GetApicMsiValue ( @param[out] Thread Returns the processor thread ID. **/ VOID +EFIAPI GetProcessorLocationByApicId ( IN UINT32 InitialApicId, OUT UINT32 *Package OPTIONAL, -- 2.39.2