diff options
Diffstat (limited to 'kexec/arch/x86_64/kexec-bzImage64.c')
-rw-r--r-- | kexec/arch/x86_64/kexec-bzImage64.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kexec/arch/x86_64/kexec-bzImage64.c b/kexec/arch/x86_64/kexec-bzImage64.c index a7b9f15..1983bcf 100644 --- a/kexec/arch/x86_64/kexec-bzImage64.c +++ b/kexec/arch/x86_64/kexec-bzImage64.c @@ -42,6 +42,7 @@ #include <arch/options.h> static const int probe_debug = 0; +int bzImage_support_efi_boot; int bzImage64_probe(const char *buf, off_t len) { @@ -82,6 +83,11 @@ int bzImage64_probe(const char *buf, off_t len) /* Must be KERNEL_64 and CAN_BE_LOADED_ABOVE_4G */ return -1; } + +#define XLF_EFI_KEXEC (1 << 4) + if ((header->xloadflags & XLF_EFI_KEXEC) == XLF_EFI_KEXEC) + bzImage_support_efi_boot = 1; + /* I've got a relocatable bzImage64 */ if (probe_debug) fprintf(stderr, "It's a relocatable bzImage64\n"); |