summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuMpPei
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-09-09 14:08:33 +0800
committerJeff Fan <jeff.fan@intel.com>2016-09-14 08:54:29 +0800
commitdfb0e6591b31f894cc6abfc028ddcd1a161dbb48 (patch)
tree938edff75e2e777aa1fa5a6d04bf527c2f64227b /UefiCpuPkg/CpuMpPei
parent7d17ab47d1d81c8012d8095c1e17412168c1cfc9 (diff)
downloadedk2-dfb0e6591b31f894cc6abfc028ddcd1a161dbb48.tar.gz
edk2-dfb0e6591b31f894cc6abfc028ddcd1a161dbb48.tar.bz2
edk2-dfb0e6591b31f894cc6abfc028ddcd1a161dbb48.zip
UefiCpuPkg/CpuMpPei: Add parameter BistInformationSize
Add one OPTIONAL parameter BistInformationSize for GetBistInfoFromPpi(). Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Feng Tian <feng.tian@intel.com> Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@Intel.com>
Diffstat (limited to 'UefiCpuPkg/CpuMpPei')
-rw-r--r--UefiCpuPkg/CpuMpPei/CpuBist.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuBist.c b/UefiCpuPkg/CpuMpPei/CpuBist.c
index 641eb10ca5..dae7d78f04 100644
--- a/UefiCpuPkg/CpuMpPei/CpuBist.c
+++ b/UefiCpuPkg/CpuMpPei/CpuBist.c
@@ -84,6 +84,7 @@ SecPlatformInformation2 (
@param PpiDescriptor Return a pointer to instance of the
EFI_PEI_PPI_DESCRIPTOR
@param BistInformationData Pointer to BIST information data
+ @param BistInformationSize Return the size in bytes of BIST information
@retval EFI_SUCCESS Retrieve of the BIST data successfully
@retval EFI_NOT_FOUND No sec platform information(2) ppi export
@@ -95,7 +96,8 @@ GetBistInfoFromPpi (
IN CONST EFI_PEI_SERVICES **PeiServices,
IN CONST EFI_GUID *Guid,
OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor,
- OUT VOID **BistInformationData
+ OUT VOID **BistInformationData,
+ OUT UINT64 *BistInformationSize OPTIONAL
)
{
EFI_STATUS Status;
@@ -140,6 +142,9 @@ GetBistInfoFromPpi (
);
if (Status == EFI_SUCCESS) {
*BistInformationData = SecPlatformInformation2;
+ if (BistInformationSize != NULL) {
+ *BistInformationSize = InformationSize;
+ }
return EFI_SUCCESS;
}
}
@@ -191,7 +196,8 @@ CollectBistDataFromPpi (
PeiServices,
&gEfiSecPlatformInformation2PpiGuid,
&SecInformationDescriptor,
- (VOID *) &SecPlatformInformation2
+ (VOID *) &SecPlatformInformation2,
+ NULL
);
if (Status == EFI_SUCCESS) {
//
@@ -207,7 +213,8 @@ CollectBistDataFromPpi (
PeiServices,
&gEfiSecPlatformInformationPpiGuid,
&SecInformationDescriptor,
- (VOID *) &SecPlatformInformation
+ (VOID *) &SecPlatformInformation,
+ NULL
);
if (Status == EFI_SUCCESS) {
NumberOfData = 1;