Measure ExitBootServices failure case
Signed-off-by: Chao Zhang<chao.b.zhang@intel.com> Reviewed-by: Dong Guo<guo.dong@intel.com> Reviewed-by: Gao Liming<liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13581 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -63,6 +63,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#include <Guid/MemoryAllocationHob.h>
|
||||
#include <Guid/EventLegacyBios.h>
|
||||
#include <Guid/EventGroup.h>
|
||||
#include <Guid/EventExitBootServiceFailed.h>
|
||||
#include <Guid/LoadModuleAtFixedAddress.h>
|
||||
#include <Guid/IdleLoopEvent.h>
|
||||
|
||||
|
@@ -110,6 +110,7 @@
|
||||
gEfiEventDxeDispatchGuid ## CONSUMES ## GUID
|
||||
gLoadFixedAddressConfigurationTableGuid ## SOMETIMES_CONSUMES
|
||||
gIdleLoopEventGuid ## CONSUMES ## GUID
|
||||
gEventExitBootServicesFailedGuid ## CONSUMES ## GUID
|
||||
|
||||
[Protocols]
|
||||
gEfiStatusCodeRuntimeProtocolGuid ## SOMETIMES_CONSUMES
|
||||
|
@@ -690,6 +690,10 @@ CoreExitBootServices (
|
||||
//
|
||||
Status = CoreTerminateMemoryMap (MapKey);
|
||||
if (EFI_ERROR (Status)) {
|
||||
//
|
||||
// Notify other drivers that ExitBootServices fail
|
||||
//
|
||||
CoreNotifySignalList (&gEventExitBootServicesFailedGuid);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user