I have come across the following code in EDKII source: file "Edk2-collection/edk2/MdeModulePkg/Universal/BdsDxe/BdsEntry.c" in Function: BootBootOptions() We Attempt to boot each boot option and calls following function for each boot option
EfiBootManagerBoot (BootManagerMenu); --> EfiSignalEventReadyToBoot() which signals ReadyToBootEvent and all CallBacks register for ReadyToBootEvent will execute. EDKII SMM code, file "./Edk2-collection/edk2/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c" Registers SmmReadyToBootHandler() for gEfiEventReadyToBootGuid, and hence we signal ReadyToBootEvent for each boot option SmmReadyToBootHandler() will be executed multiple time. SmmReadyToBootHandler() when executes installs the &gEdkiiSmmReadyToBootProtocolGuid, and this will get install multiple times. Is it okay to install gEdkiiSmmReadyToBootProtocolGuid multiple times. Is it okay or is it a bug? -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#121668): https://edk2.groups.io/g/devel/message/121668 Mute This Topic: https://groups.io/mt/116235045/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
