X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FCore%2FPei%2FReset%2FReset.c;h=793244b3916032e19f6ba441a201680b6b212136;hb=37623a5c029e5415fe24b86bf4f6481f8fdfad94;hp=0bd016b8d484bc76bf8f278fa00935ceaf8987e7;hpb=dc857d5641883b98e4f73c9da6fb131d43962bb8;p=mirror_edk2.git diff --git a/MdeModulePkg/Core/Pei/Reset/Reset.c b/MdeModulePkg/Core/Pei/Reset/Reset.c index 0bd016b8d4..793244b391 100644 --- a/MdeModulePkg/Core/Pei/Reset/Reset.c +++ b/MdeModulePkg/Core/Pei/Reset/Reset.c @@ -1,8 +1,8 @@ /** @file Pei Core Reset System Support -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2006, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ -#include +#include "PeiMain.h" /** @@ -48,6 +48,13 @@ PeiResetSystem ( if (!EFI_ERROR (Status)) { return ResetPpi->ResetSystem (PeiServices); } + // + // Report Status Code that Reset PPI is not available + // + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + (EFI_SOFTWARE_PEI_CORE | EFI_SW_PS_EC_RESET_NOT_AVAILABLE) + ); return EFI_NOT_AVAILABLE_YET; }