From 1fdeacd32c6335acb7bd5f00c3f177013d971d3d Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Thu, 23 Aug 2018 08:24:10 -0700 Subject: 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 Reviewed-by: Simon Glass --- include/efi.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/efi.h b/include/efi.h index 63017c86f25..e1854ecd23b 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 { -- cgit v1.3.1