From: Bret Barkelew <bret.barke...@microsoft.com> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1676
Add gEfiEventPreReadyToBootGuid signal before gEfiEventReadyToBootGuid and gEfiEventPostReadyToBootGuid after gEfiEventReadyToBootGuid in UefiBootManagerLib. Cc: Jian J Wang <jian.j.w...@intel.com> Cc: Ray Ni <ray...@intel.com> Cc: Star Zeng <star.z...@intel.com> Cc: Liming Gao <liming....@intel.com> Cc: Sean Brogan <sean.bro...@microsoft.com> Cc: Michael Turner <michael.tur...@microsoft.com> Cc: Bret Barkelew <bret.barke...@microsoft.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhichao Gao <zhichao....@intel.com> --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 2 ++ MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h | 4 +++- .../Library/UefiBootManagerLib/UefiBootManagerLib.inf | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c index 0535cd7335..7bd4840f90 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c @@ -1807,7 +1807,9 @@ EfiBootManagerBoot ( DEBUG ((EFI_D_INFO, "[Bds] Booting Boot Manager Menu.\n")); BmStopHotkeyService (NULL, NULL); } else { + EfiEventGroupSignal (&gEfiEventPreReadyToBootGuid); EfiSignalEventReadyToBoot(); + EfiEventGroupSignal (&gEfiEventPostReadyToBootGuid); // // Report Status Code to indicate ReadyToBoot was signalled // diff --git a/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h b/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h index 0fef63fcee..c507d75e62 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h +++ b/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h @@ -1,7 +1,7 @@ /** @file BDS library definition, include the file and data structure -Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR> +Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR> (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -53,6 +53,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Guid/GlobalVariable.h> #include <Guid/StatusCodeDataTypeId.h> #include <Guid/StatusCodeDataTypeVariable.h> +#include <Guid/EventPreReadyToBoot.h> +#include <Guid/EventPostReadyToBoot.h> #include <Library/PrintLib.h> #include <Library/DebugLib.h> diff --git a/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf b/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf index 228b910336..e1ec8885eb 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf +++ b/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf @@ -5,7 +5,7 @@ # manipulation, hotkey registration, UEFI boot, connect/disconnect, console # manipulation, driver health checking and etc. # -# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> +# Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR> # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -90,6 +90,9 @@ gEfiDiskInfoScsiInterfaceGuid ## SOMETIMES_CONSUMES ## GUID gEfiDiskInfoSdMmcInterfaceGuid ## SOMETIMES_CONSUMES ## GUID + gEfiEventPreReadyToBootGuid ## SOMETIMES_CONSUMES ## Event + gEfiEventPostReadyToBootGuid ## SOMETIMES_CONSUMES ## Event + [Protocols] gEfiPciRootBridgeIoProtocolGuid ## CONSUMES gEfiSimpleFileSystemProtocolGuid ## SOMETIMES_CONSUMES -- 2.21.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel