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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user