From 044824d9601202626e2df5aac439191c49e6701e Mon Sep 17 00:00:00 2001 From: czhang46 Date: Thu, 2 Aug 2012 06:34:20 +0000 Subject: Measure ExitBootServices failure case Signed-off-by: Chao Zhang Reviewed-by: Dong Guo Reviewed-by: Gao Liming git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13581 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/DxeMain.h | 1 + MdeModulePkg/Core/Dxe/DxeMain.inf | 1 + MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 4 ++++ 3 files changed, 6 insertions(+) (limited to 'MdeModulePkg/Core') diff --git a/MdeModulePkg/Core/Dxe/DxeMain.h b/MdeModulePkg/Core/Dxe/DxeMain.h index dedb84047f..53b5f59781 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain.h +++ b/MdeModulePkg/Core/Dxe/DxeMain.h @@ -63,6 +63,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include #include +#include #include #include diff --git a/MdeModulePkg/Core/Dxe/DxeMain.inf b/MdeModulePkg/Core/Dxe/DxeMain.inf index dda17aea04..0fe0259f06 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain.inf +++ b/MdeModulePkg/Core/Dxe/DxeMain.inf @@ -110,6 +110,7 @@ gEfiEventDxeDispatchGuid ## CONSUMES ## GUID gLoadFixedAddressConfigurationTableGuid ## SOMETIMES_CONSUMES gIdleLoopEventGuid ## CONSUMES ## GUID + gEventExitBootServicesFailedGuid ## CONSUMES ## GUID [Protocols] gEfiStatusCodeRuntimeProtocolGuid ## SOMETIMES_CONSUMES diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c index 84a3583a6b..a6d10e680c 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c @@ -690,6 +690,10 @@ CoreExitBootServices ( // Status = CoreTerminateMemoryMap (MapKey); if (EFI_ERROR (Status)) { + // + // Notify other drivers that ExitBootServices fail + // + CoreNotifySignalList (&gEventExitBootServicesFailedGuid); return Status; } -- cgit v1.2.3