diff options
author | Varad Gautam <vrd@amazon.de> | 2019-06-27 12:12:43 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2019-07-03 09:56:22 +0200 |
commit | 22a2ed55132e2a3afc639034484a48120ef2a464 (patch) | |
tree | 982731b3390ece2e7f91525d00e47f53beae386c /kexec/arch/i386/kexec-x86.c | |
parent | d6bc88c06962b74c7d0d6af8f2193d2483caae97 (diff) |
x86: Support multiboot2 images
Add a new type `multiboot2-x86` that allows loading multiboot2 [1] images
within the relocation range specified in the image header. The image is
always placed at the lowest available address, regardless of the
preference information.
[1] https://www.gnu.org/software/grub/manual/multiboot2/multiboot.html
Signed-off-by: Varad Gautam <vrd@amazon.de>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/i386/kexec-x86.c')
-rw-r--r-- | kexec/arch/i386/kexec-x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kexec/arch/i386/kexec-x86.c b/kexec/arch/i386/kexec-x86.c index fb0e6f9..444cb69 100644 --- a/kexec/arch/i386/kexec-x86.c +++ b/kexec/arch/i386/kexec-x86.c @@ -36,6 +36,8 @@ struct file_type file_type[] = { { "multiboot-x86", multiboot_x86_probe, multiboot_x86_load, multiboot_x86_usage }, + { "multiboot2-x86", multiboot2_x86_probe, multiboot2_x86_load, + multiboot2_x86_usage }, { "elf-x86", elf_x86_probe, elf_x86_load, elf_x86_usage }, { "bzImage", bzImage_probe, bzImage_load, bzImage_usage }, { "beoboot-x86", beoboot_probe, beoboot_load, beoboot_usage }, |