From 93638568c1c6bd6bace2cd27666796b7c87fc45c Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Tue, 20 Sep 2016 16:17:26 +0800 Subject: [PATCH] UefiCpuPkg/SecCore: SecPlatformInformation(2) are optional PPIs Currently, this is ASSERT() if neither SecPlatformInformation2 nor SecPlatformInformation PPIs are found. This is not correct. Per PI specification both of them are optional PPI. Platform may not install them. Cc: Michael Kinney Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Michael Kinney --- UefiCpuPkg/SecCore/SecBist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UefiCpuPkg/SecCore/SecBist.c b/UefiCpuPkg/SecCore/SecBist.c index 19f34925a1..ba7d7cafa9 100644 --- a/UefiCpuPkg/SecCore/SecBist.c +++ b/UefiCpuPkg/SecCore/SecBist.c @@ -261,6 +261,8 @@ RepublishSecPlatformInformationPpi ( SecInformationDescriptor, &mPeiSecPlatformInformation ); + } else if (Status == EFI_NOT_FOUND) { + return; } } -- 2.39.2