mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
arm: Add return value argument to longjmp
The normal longjmp command allows for a caller to pass the return value of the setjmp() invocation. This patch adds that semantic to the arm implementation of it and adjusts the efi_loader call respectively. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d40dbfb740
commit
692fcdd800
2 changed files with 15 additions and 19 deletions
|
@ -475,7 +475,7 @@ static efi_status_t EFIAPI efi_exit(efi_handle_t image_handle,
|
|||
exit_data_size, exit_data);
|
||||
|
||||
loaded_image_info->exit_status = exit_status;
|
||||
longjmp(&loaded_image_info->exit_jmp);
|
||||
longjmp(&loaded_image_info->exit_jmp, 1);
|
||||
|
||||
panic("EFI application exited");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue