diff options
author | Alexander Graf <agraf@suse.de> | 2016-09-27 09:30:32 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-08 09:33:34 -0400 |
commit | 692fcdd800e1987e69294e11f8cf570771c528c5 (patch) | |
tree | e196a4c634a52f10502af3b41f54e74365917544 /lib/efi_loader | |
parent | d40dbfb7405cb74946ba0a6e9058045fdb5bddaf (diff) | |
download | u-boot-692fcdd800e1987e69294e11f8cf570771c528c5.tar.gz |
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>
Diffstat (limited to 'lib/efi_loader')
-rw-r--r-- | lib/efi_loader/efi_boottime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index be6f5e8112..792db39f51 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -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"); } |