summaryrefslogtreecommitdiff
path: root/include/efi_api.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-05-20 23:28:23 +0200
committerTom Rini <trini@konsulko.com>2016-06-06 13:39:15 -0400
commita86aeaf228da739bce6bc40927949efc33672050 (patch)
tree2f3f9a7dbf3ad0228ed1423e91dec1c0ca37fda4 /include/efi_api.h
parent97d44b1f5c328af97d3c381c77858c8dd32c8e20 (diff)
downloadu-boot-imx-a86aeaf228da739bce6bc40927949efc33672050.zip
u-boot-imx-a86aeaf228da739bce6bc40927949efc33672050.tar.gz
u-boot-imx-a86aeaf228da739bce6bc40927949efc33672050.tar.bz2
efi_loader: Add exit support
Some times you may want to exit an EFI payload again, for example to default boot into a PXE installation and decide that you would rather want to boot from the local disk instead. This patch adds exit functionality to the EFI implementation, allowing EFI payloads to exit. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r--include/efi_api.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/efi_api.h b/include/efi_api.h
index 20035d7..f572b88 100644
--- a/include/efi_api.h
+++ b/include/efi_api.h
@@ -17,6 +17,10 @@
#include <efi.h>
+#ifdef CONFIG_EFI_LOADER
+#include <asm/setjmp.h>
+#endif
+
/* Types and defines for EFI CreateEvent */
enum efi_event_type {
EFI_TIMER_STOP = 0,
@@ -239,6 +243,12 @@ struct efi_loaded_image {
unsigned int image_code_type;
unsigned int image_data_type;
unsigned long unload;
+
+ /* Below are efi loader private fields */
+#ifdef CONFIG_EFI_LOADER
+ efi_status_t exit_status;
+ struct jmp_buf_data exit_jmp;
+#endif
};
#define DEVICE_PATH_GUID \