From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heinrich Schuchardt Date: Mon, 8 Feb 2021 23:18:03 +0100 Subject: [PATCH 1/2] efi: Add ESRT to the EFI system table In-Reply-To: <20210208125246.32547-2-jose.marinho@arm.com> References: <20210208125246.32547-1-jose.marinho@arm.com> <20210208125246.32547-2-jose.marinho@arm.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2/8/21 1:52 PM, Jose Marinho wrote: > The ESRT is initialised during efi_init_objlist after > efi_initialize_system_table(). > > The ESRT is initially created with size for 50 FW image entries. > The ESRT is resized when it runs out of space. Every resize adds 50 > additional entries. > The ESRT is populated from information provided by FMP instances only. > > Signed-off-by: Jose Marinho one limitation is, if any FMP instance is installed and then uninstalled during the same boottime flow, the ESRT entries will not be removed this limitation is because I cannot find a proper UEFI way to hook to a FMP protocol uninstall. register an event with RegisterProtocolNotify(). EFI_CALL(efi_register_protocol_notify(...)) after exporting the function in /include/efi_loader The event can be created with efi_create_event().