]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/PiSmmCpuDxeSmm: Add EFIAPI to CheckFeatureSupported()
authorMichael Kinney <michael.d.kinney@intel.com>
Thu, 18 Feb 2016 17:46:25 +0000 (09:46 -0800)
committerMichael Kinney <michael.d.kinney@intel.com>
Mon, 22 Feb 2016 18:35:28 +0000 (10:35 -0800)
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>
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h

index ec4ec9b067c5c6ace339731d7ba31d3299ab7fef..2078421a12437a2bc0cdeeeb9fa5ab4d76206ede 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Enable SMM profile.\r
 \r
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -928,10 +928,13 @@ InitSmmProfileInternal (
 /**\r
   Check if XD feature is supported by a processor.\r
 \r
+  @param[in,out] Buffer  The pointer to private data buffer.\r
+\r
 **/\r
 VOID\r
+EFIAPI\r
 CheckFeatureSupported (\r
-  VOID\r
+  IN OUT VOID   *Buffer\r
   )\r
 {\r
   UINT32                 RegEax;\r
@@ -1001,7 +1004,7 @@ CheckProcessorFeature (
   //\r
   // Check if XD and BTS are supported on all processors.\r
   //\r
-  CheckFeatureSupported ();\r
+  CheckFeatureSupported (NULL);\r
 \r
   //\r
   //Check on other processors if BSP supports this\r
@@ -1009,7 +1012,7 @@ CheckProcessorFeature (
   if (mXdSupported || mBtsSupported) {\r
     MpServices->StartupAllAPs (\r
                   MpServices,\r
-                  (EFI_AP_PROCEDURE) CheckFeatureSupported,\r
+                  CheckFeatureSupported,\r
                   TRUE,\r
                   NULL,\r
                   0,\r
index 45484674589d1589ce10a3830640a072715aee41..c6ce1f59adda6e84122044198e5db80fbf18c572 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 SMM profile header file.\r
 \r
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -95,10 +95,13 @@ PageFaultIdtHandlerSmmProfile (
 /**\r
   Check if XD feature is supported by a processor.\r
 \r
+  @param[in,out] Buffer  The pointer to private data buffer.\r
+\r
 **/\r
 VOID\r
+EFIAPI\r
 CheckFeatureSupported (\r
-  VOID\r
+  IN OUT VOID   *Buffer\r
   );\r
 \r
 /**\r