summaryrefslogtreecommitdiff
path: root/include/efi.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-08-23 08:24:10 -0700
committerBin Meng <bmeng.cn@gmail.com>2018-08-30 11:23:14 +0800
commit1fdeacd32c6335acb7bd5f00c3f177013d971d3d (patch)
tree9d9119d2eb2ec7dba56e35799fd95223708ad8c3 /include/efi.h
parentcbe503fbc11f36086482bfd7066c2e36b82f1544 (diff)
downloadu-boot-1fdeacd32c6335acb7bd5f00c3f177013d971d3d.tar.gz
x86: zimage: Support booting Linux kernel from an EFI payload
At present Linux kernel loaded from U-Boot as an EFI payload does not boot. This fills in kernel's boot params structure with the required critical EFI information like system table address and memory map stuff so that kernel can obtain essential data like runtime services and ACPI table to boot. With this patch, now U-Boot as an EFI payload becomes much more practical: it is another option of kernel bootloader, ie, can be a replacement for grub. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/efi.h')
-rw-r--r--include/efi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/efi.h b/include/efi.h
index 63017c86f2..e1854ecd23 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -41,6 +41,9 @@
#define efi_va_end va_end
#endif /* __x86_64__ */
+#define EFI32_LOADER_SIGNATURE "EL32"
+#define EFI64_LOADER_SIGNATURE "EL64"
+
struct efi_device_path;
typedef struct {