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:
Alexander Graf 2016-09-27 09:30:32 +02:00 committed by Tom Rini
parent d40dbfb740
commit 692fcdd800
2 changed files with 15 additions and 19 deletions

View file

@ -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");
}