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>
This commit is contained in:
Michael Kinney 2016-02-18 09:46:25 -08:00
parent 8e2efec6b2
commit d691abec1b
2 changed files with 12 additions and 6 deletions

View File

@ -1,7 +1,7 @@
/** @file /** @file
Enable SMM profile. 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 This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 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. Check if XD feature is supported by a processor.
@param[in,out] Buffer The pointer to private data buffer.
**/ **/
VOID VOID
EFIAPI
CheckFeatureSupported ( CheckFeatureSupported (
VOID IN OUT VOID *Buffer
) )
{ {
UINT32 RegEax; UINT32 RegEax;
@ -1001,7 +1004,7 @@ CheckProcessorFeature (
// //
// Check if XD and BTS are supported on all processors. // Check if XD and BTS are supported on all processors.
// //
CheckFeatureSupported (); CheckFeatureSupported (NULL);
// //
//Check on other processors if BSP supports this //Check on other processors if BSP supports this
@ -1009,7 +1012,7 @@ CheckProcessorFeature (
if (mXdSupported || mBtsSupported) { if (mXdSupported || mBtsSupported) {
MpServices->StartupAllAPs ( MpServices->StartupAllAPs (
MpServices, MpServices,
(EFI_AP_PROCEDURE) CheckFeatureSupported, CheckFeatureSupported,
TRUE, TRUE,
NULL, NULL,
0, 0,

View File

@ -1,7 +1,7 @@
/** @file /** @file
SMM profile header 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 This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 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. Check if XD feature is supported by a processor.
@param[in,out] Buffer The pointer to private data buffer.
**/ **/
VOID VOID
EFIAPI
CheckFeatureSupported ( CheckFeatureSupported (
VOID IN OUT VOID *Buffer
); );
/** /**