grub/grub-core/loader
Andrew Jeddeloh e683cfb0cf loader/i386/linux: Calculate the setup_header length
Previously the setup_header length was just assumed to be the size of the
linux_kernel_params struct. The linux x86 32-bit boot protocol says that the
end of the linux_i386_kernel_header is at 0x202 + the byte value at 0x201 in
the linux_i386_kernel_header. So, calculate the size of the header using the
end of the linux_i386_kernel_header, rather than assume it is the size of the
linux_kernel_params struct.

Additionally, add some required members to the linux_kernel_params
struct and align the content of linux_i386_kernel_header struct with
it. New members naming was taken directly from Linux kernel source.

linux_kernel_params and linux_i386_kernel_header structs require more
cleanup. However, this is not urgent, so, let's do this after release.
Just in case...

Signed-off-by: Andrew Jeddeloh <andrew.jeddeloh@coreos.com>
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Vladimir Serbinenko <phcoder@google.com>
Reviewed-by: Ross Philipson <ross.philipson@oracle.com>
2019-04-02 13:09:54 +02:00
..
arm arm: Move initrd upper to leave more space for kernel 2019-02-06 11:34:07 +01:00
arm64 efi: Rename armxx to arch 2019-02-25 11:28:44 +01:00
efi grub-core/loader/efi/fdt.c: Do not copy random memory 2019-01-14 11:53:52 +01:00
i386 loader/i386/linux: Calculate the setup_header length 2019-04-02 13:09:54 +02:00
ia64/efi verifiers: IA-64 fallout cleanup 2019-03-20 11:38:28 +01:00
mips verifiers: MIPS fallout cleanup 2019-03-20 11:38:28 +01:00
powerpc/ieee1275 verifiers: PowerPC fallout cleanup 2019-03-20 11:38:28 +01:00
riscv RISC-V: Add Linux load logic 2019-02-25 11:33:06 +01:00
sparc64/ieee1275 arm-uboot, ia64, sparc64: Fix up grub_file_open() calls 2018-11-16 14:42:51 +01:00
aout.c Implement automatic module license checking according to new GNU 2011-04-11 23:01:51 +02:00
linux.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
lzss.c Add LZSS Mach-O support (needed for new xnu kernelcache). 2012-02-29 13:26:13 +01:00
macho.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
macho32.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
macho64.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
machoXX.c Simplify few strings. 2013-05-07 11:44:15 +02:00
multiboot.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
multiboot_elfxx.c multiboot_elfxx.c: Fix compilation by fixing undeclared variable 2018-07-02 14:16:14 +02:00
multiboot_mbi2.c verifiers: Add possibility to verify kernel and modules command lines 2018-11-09 13:25:31 +01:00
xnu.c verifiers: Add possibility to verify kernel and modules command lines 2018-11-09 13:25:31 +01:00
xnu_resume.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00