]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/SecCore/SecBist.c
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / SecCore / SecBist.c
index 19f34925a16fd265d7292cd8b5f6d8a5dbb154ab..440140f5654c6c5e2f4969153d7a173ae08d778d 100644 (file)
@@ -2,13 +2,7 @@
   Get SEC platform information(2) PPI and reinstall it.\r
 \r
   Copyright (c) 2006 - 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
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -37,8 +31,8 @@ EFI_PEI_PPI_DESCRIPTOR mPeiSecPlatformInformation2 = {
 /**\r
   Worker function to parse CPU BIST information from Guided HOB.\r
 \r
-  @param[out] StructureSize     Pointer to the variable describing size of the input buffer.\r
-  @param[out] StructureBuffer   Pointer to the buffer save CPU BIST information.\r
+  @param[in, out] StructureSize     Pointer to the variable describing size of the input buffer.\r
+  @param[in, out] StructureBuffer   Pointer to the buffer save CPU BIST information.\r
 \r
   @retval EFI_SUCCESS           The data was successfully returned.\r
   @retval EFI_BUFFER_TOO_SMALL  The buffer was too small.\r
@@ -79,9 +73,9 @@ GetBistFromHob (
 /**\r
   Implementation of the PlatformInformation service in EFI_SEC_PLATFORM_INFORMATION_PPI.\r
 \r
-  @param[in]  PeiServices                Pointer to the PEI Services Table.\r
-  @param[out] StructureSize              Pointer to the variable describing size of the input buffer.\r
-  @param[out  PlatformInformationRecord  Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.\r
+  @param[in]      PeiServices                Pointer to the PEI Services Table.\r
+  @param[in, out] StructureSize              Pointer to the variable describing size of the input buffer.\r
+  @param[out]     PlatformInformationRecord  Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.\r
 \r
   @retval EFI_SUCCESS                    The data was successfully returned.\r
   @retval EFI_BUFFER_TOO_SMALL           The buffer was too small.\r
@@ -101,9 +95,9 @@ SecPlatformInformationBist (
 /**\r
   Implementation of the PlatformInformation2 service in EFI_SEC_PLATFORM_INFORMATION2_PPI.\r
 \r
-  @param[in]  PeiServices                The pointer to the PEI Services Table.\r
-  @param[out] StructureSize              The pointer to the variable describing size of the input buffer.\r
-  @param[out] PlatformInformationRecord2 The pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD2.\r
+  @param[in]      PeiServices                The pointer to the PEI Services Table.\r
+  @param[in, out] StructureSize              The pointer to the variable describing size of the input buffer.\r
+  @param[out]     PlatformInformationRecord2 The pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD2.\r
 \r
   @retval EFI_SUCCESS                    The data was successfully returned.\r
   @retval EFI_BUFFER_TOO_SMALL           The buffer was too small. The current buffer size needed to\r
@@ -261,6 +255,8 @@ RepublishSecPlatformInformationPpi (
                  SecInformationDescriptor,\r
                  &mPeiSecPlatformInformation\r
                  );\r
+    } else if (Status == EFI_NOT_FOUND) {\r
+      return;\r
     }\r
   }\r
 \r