mirror of https://github.com/acidanthera/audk.git
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
|
|
@ -200,7 +200,7 @@
|
|||
gRecoveryOnDataCdGuid = { 0x5CAC0099, 0x0DC9, 0x48E5, { 0x80, 0x68, 0xBB, 0x95, 0xF5, 0x40, 0x0A, 0x9F }}
|
||||
|
||||
## Include/Guid/SmmLockBox.h
|
||||
gEfiSmmLockBoxCommunicationGuid = { 0x2a3cfebd, 0x27e8, 0x4d0a, { 0x8b, 0x79, 0xd6, 0x88, 0xc2, 0xa3, 0xe1, 0xc0 }}
|
||||
gEfiSmmLockBoxCommunicationGuid = { 0x2a3cfebd, 0x27e8, 0x4d0a, { 0x8b, 0x79, 0xd6, 0x88, 0xc2, 0xa3, 0xe1, 0xc0 }}
|
||||
|
||||
## Include/Guid/AcpiS3Context.h
|
||||
gEfiAcpiVariableGuid = { 0xAF9FFD67, 0xEC10, 0x488A, { 0x9D, 0xFC, 0x6C, 0xBF, 0x5E, 0xE2, 0x2C, 0x2E }}
|
||||
|
@ -245,7 +245,10 @@
|
|||
|
||||
## Guid for Firmware Performance Data Table (FPDT) implementation.
|
||||
# Include/Guid/FirmwarePerformance.h
|
||||
gEfiFirmwarePerformanceGuid = { 0xc095791a, 0x3001, 0x47b2, { 0x80, 0xc9, 0xea, 0xc7, 0x31, 0x9f, 0x2f, 0xa4 }}
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue