]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/SecCore: SecPlatformInformation(2) are optional PPIs
authorJeff Fan <jeff.fan@intel.com>
Tue, 20 Sep 2016 08:17:26 +0000 (16:17 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 21 Sep 2016 06:12:49 +0000 (14:12 +0800)
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 <michael.d.kinney@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
UefiCpuPkg/SecCore/SecBist.c

index 19f34925a16fd265d7292cd8b5f6d8a5dbb154ab..ba7d7cafa9cc261a7e2f4571f79c28a8b9c7658f 100644 (file)
@@ -261,6 +261,8 @@ RepublishSecPlatformInformationPpi (
                  SecInformationDescriptor,\r
                  &mPeiSecPlatformInformation\r
                  );\r
+    } else if (Status == EFI_NOT_FOUND) {\r
+      return;\r
     }\r
   }\r
 \r