mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00
efi_loader: Clean up usage of structure jmp_buf_data
Structure jmp_buf_data provides the underlying format of jmp_buf, which we actually don't care about. Clean up existing code to use the standard jmp_buf type. This introduces no functional change. Signed-off-by: Yao Zi <ziyao@disroot.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
7082c9e656
commit
f280615747
2 changed files with 6 additions and 7 deletions
|
@ -15,13 +15,13 @@
|
|||
#include <efi_api.h>
|
||||
#include <image.h>
|
||||
#include <pe.h>
|
||||
#include <setjmp.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/oid_registry.h>
|
||||
|
||||
struct blk_desc;
|
||||
struct bootflow;
|
||||
struct jmp_buf_data;
|
||||
|
||||
#if CONFIG_IS_ENABLED(EFI_LOADER)
|
||||
|
||||
|
@ -495,7 +495,7 @@ struct efi_loaded_image_obj {
|
|||
efi_status_t *exit_status;
|
||||
efi_uintn_t *exit_data_size;
|
||||
u16 **exit_data;
|
||||
struct jmp_buf_data *exit_jmp;
|
||||
jmp_buf *exit_jmp;
|
||||
EFIAPI efi_status_t (*entry)(efi_handle_t image_handle,
|
||||
struct efi_system_table *st);
|
||||
u16 image_type;
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include <usb.h>
|
||||
#include <watchdog.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <setjmp.h>
|
||||
#include <linux/libfdt_env.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
@ -3198,7 +3197,7 @@ efi_status_t EFIAPI efi_start_image(efi_handle_t image_handle,
|
|||
void *info;
|
||||
efi_handle_t parent_image = current_image;
|
||||
efi_status_t exit_status;
|
||||
struct jmp_buf_data exit_jmp;
|
||||
jmp_buf exit_jmp;
|
||||
|
||||
EFI_ENTRY("%p, %p, %p", image_handle, exit_data_size, exit_data);
|
||||
|
||||
|
@ -3237,7 +3236,7 @@ efi_status_t EFIAPI efi_start_image(efi_handle_t image_handle,
|
|||
}
|
||||
|
||||
/* call the image! */
|
||||
if (setjmp(&exit_jmp)) {
|
||||
if (setjmp(exit_jmp)) {
|
||||
/*
|
||||
* We called the entry point of the child image with EFI_CALL
|
||||
* in the lines below. The child image called the Exit() boot
|
||||
|
@ -3443,7 +3442,7 @@ static efi_status_t EFIAPI efi_exit(efi_handle_t image_handle,
|
|||
struct efi_loaded_image *loaded_image_protocol;
|
||||
struct efi_loaded_image_obj *image_obj =
|
||||
(struct efi_loaded_image_obj *)image_handle;
|
||||
struct jmp_buf_data *exit_jmp;
|
||||
jmp_buf *exit_jmp;
|
||||
|
||||
EFI_ENTRY("%p, %ld, %zu, %p", image_handle, exit_status,
|
||||
exit_data_size, exit_data);
|
||||
|
@ -3510,7 +3509,7 @@ static efi_status_t EFIAPI efi_exit(efi_handle_t image_handle,
|
|||
*/
|
||||
efi_restore_gd();
|
||||
|
||||
longjmp(exit_jmp, 1);
|
||||
longjmp(*exit_jmp, 1);
|
||||
|
||||
panic("EFI application exited");
|
||||
out:
|
||||
|
|
Loading…
Add table
Reference in a new issue