summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kinney <michael.d.kinney@intel.com>2016-02-18 09:46:25 -0800
committerHao Wu <hao.a.wu@intel.com>2016-02-25 09:46:52 +0800
commitc3a78be406beb4af7b63652c5817defb8907d249 (patch)
tree0e72fac2305f2a977a8e16f7fa75801b0e9bc039
parentd52d89417057a86686b3edecdceb8f934d6c4a9e (diff)
downloadedk2-platforms-c3a78be406beb4af7b63652c5817defb8907d249.tar.xz
UefiCpuPkg/PiSmmCpuDxeSmm: Add EFIAPI to CheckFeatureSupported()
The function CheckFeatureSupported() is used as an EFI_AP_PROCEDURE in the MP Services Protocol service StartAllAPs(). Any function used as an EFI_AP_PROCEDURE must use EFIAPI calling convention. Cc: Laszlo Ersek <lersek@redhat.com> Cc: Jeff Fan <jeff.fan@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> (cherry picked from commit d691abec1bae4db5e4c58be7dbce40974d810f7a)
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c11
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h7
2 files changed, 12 insertions, 6 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
index ec4ec9b067..2078421a12 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
@@ -1,7 +1,7 @@
/** @file
Enable SMM profile.
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -928,10 +928,13 @@ InitSmmProfileInternal (
/**
Check if XD feature is supported by a processor.
+ @param[in,out] Buffer The pointer to private data buffer.
+
**/
VOID
+EFIAPI
CheckFeatureSupported (
- VOID
+ IN OUT VOID *Buffer
)
{
UINT32 RegEax;
@@ -1001,7 +1004,7 @@ CheckProcessorFeature (
//
// Check if XD and BTS are supported on all processors.
//
- CheckFeatureSupported ();
+ CheckFeatureSupported (NULL);
//
//Check on other processors if BSP supports this
@@ -1009,7 +1012,7 @@ CheckProcessorFeature (
if (mXdSupported || mBtsSupported) {
MpServices->StartupAllAPs (
MpServices,
- (EFI_AP_PROCEDURE) CheckFeatureSupported,
+ CheckFeatureSupported,
TRUE,
NULL,
0,
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
index 4548467458..c6ce1f59ad 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
@@ -1,7 +1,7 @@
/** @file
SMM profile header file.
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -95,10 +95,13 @@ PageFaultIdtHandlerSmmProfile (
/**
Check if XD feature is supported by a processor.
+ @param[in,out] Buffer The pointer to private data buffer.
+
**/
VOID
+EFIAPI
CheckFeatureSupported (
- VOID
+ IN OUT VOID *Buffer
);
/**