efi: Create a common file for the stub
There is some duplicated code across x86 and ARM even though they have slightly different implementations. They both call efi_stub_exit_boot_services() and this function does not relate to the app, so belongs better outside the general-purpose efi.c file. Create a new efi_stub C file containing this function. Leave out the efi_ prefix since this is obvious from the directory name. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -664,13 +664,13 @@ void efi_putc(struct efi_priv *priv, const char ch);
|
||||
int efi_store_memory_map(struct efi_priv *priv);
|
||||
|
||||
/**
|
||||
* efi_call_exit_boot_services() - Handle the exit-boot-service procedure
|
||||
* efi_stub_exit_boot_services() - Handle the exit-boot-service procedure
|
||||
*
|
||||
* Tell EFI we don't want their boot services anymore
|
||||
*
|
||||
* Return: 0 if OK, non-zero on error
|
||||
*/
|
||||
int efi_call_exit_boot_services(void);
|
||||
int efi_stub_exit_boot_services(void);
|
||||
|
||||
/**
|
||||
* efi_get_mmap() - Get the memory map from EFI
|
||||
|
||||
Reference in New Issue
Block a user