]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Pei/Reset/Reset.c
Add missing status code in several modules.
[mirror_edk2.git] / MdeModulePkg / Core / Pei / Reset / Reset.c
index 67aadb35a327c9b2364f28ef8769b7a191644af0..793244b3916032e19f6ba441a201680b6b212136 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Pei Core Reset System Support\r
   \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006, 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
@@ -48,6 +48,13 @@ PeiResetSystem (
   if (!EFI_ERROR (Status)) {\r
     return ResetPpi->ResetSystem (PeiServices);\r
   } \r
+  //\r
+  // Report Status Code that Reset PPI is not available\r
+  //\r
+  REPORT_STATUS_CODE (\r
+    EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+    (EFI_SOFTWARE_PEI_CORE | EFI_SW_PS_EC_RESET_NOT_AVAILABLE)\r
+    );\r
   return  EFI_NOT_AVAILABLE_YET;\r
 }\r
 \r