efi: Exit EFI boot-services before starting the next app

When the app is booting a kernel without using EFI, it must first exit
the boot services provided by EFI. Add a hook for this, using
bootm_final()

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-11 15:59:41 -06:00
parent 082666ec3e
commit 10e31d38f8
3 changed files with 53 additions and 0 deletions

View File

@@ -675,6 +675,17 @@ void efi_putc(struct efi_priv *priv, const char ch);
*/
int efi_stub_exit_boot_services(void);
/**
* efi_app_exit_boot_services() - Handle the exit-boot-service procedure
*
* Tell EFI we don't want their boot services anymore
*
* This is only available in the app
*
* Return: 0 if OK, non-zero on error
*/
int efi_app_exit_boot_services(struct efi_priv *priv, uint key);
/**
* efi_get_mmap() - Get the memory map from EFI
*