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:
parent
9e945f7852
commit
044824d960
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
/** @file
|
||||
GUID is the name of events used with ExitBootServices in order to be notified
|
||||
when this ExitBootServices Call is failed.
|
||||
|
||||
Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __EVENT_EXIT_BOOT_FAILED_GUID_H__
|
||||
#define __EVENT_EXIT_BOOT_FAILED_GUID_H__
|
||||
|
||||
#define EVENT_GROUP_EXIT_BOOT_SERVICES_FAILED \
|
||||
{ 0x4f6c5507, 0x232f, 0x4787, { 0xb9, 0x5e, 0x72, 0xf8, 0x62, 0x49, 0xc, 0xb1 } }
|
||||
|
||||
extern EFI_GUID gEventExitBootServicesFailedGuid;
|
||||
|
||||
#endif
|
|
@ -247,6 +247,9 @@
|
|||
# Include/Guid/FirmwarePerformance.h
|
||||
gEfiFirmwarePerformanceGuid = { 0xc095791a, 0x3001, 0x47b2, { 0x80, 0xc9, 0xea, 0xc7, 0x31, 0x9f, 0x2f, 0xa4 }}
|
||||
|
||||
## Include/Guid/ExitBootServiceFailed.h
|
||||
gEventExitBootServicesFailedGuid = { 0x4f6c5507, 0x232f, 0x4787, { 0xb9, 0x5e, 0x72, 0xf8, 0x62, 0x49, 0xc, 0xb1 } }
|
||||
|
||||
[Ppis]
|
||||
## Include/Ppi/AtaController.h
|
||||
gPeiAtaControllerPpiGuid = { 0xa45e60d1, 0xc719, 0x44aa, { 0xb0, 0x7a, 0xaa, 0x77, 0x7f, 0x85, 0x90, 0x6d }}
|
||||
|
|
Loading…
Reference in New Issue