summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Pei/Reset/Reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Core/Pei/Reset/Reset.c')
-rw-r--r--MdeModulePkg/Core/Pei/Reset/Reset.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Pei/Reset/Reset.c b/MdeModulePkg/Core/Pei/Reset/Reset.c
index 96425fed53..793244b391 100644
--- a/MdeModulePkg/Core/Pei/Reset/Reset.c
+++ b/MdeModulePkg/Core/Pei/Reset/Reset.c
@@ -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;
}