grub/grub-core/loader/i386
Andrew Jeddeloh f9b054242e 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>
2020-09-21 20:00:17 -04:00
..
coreboot verifiers: File type for fine-grained signature-verification controlling 2020-09-21 13:29:05 -04:00
efi verifiers: Core TPM support 2020-09-21 16:43:54 -04:00
pc verifiers: Core TPM support 2020-09-21 16:43:54 -04:00
bsd.c verifiers: Add possibility to verify kernel and modules command lines 2020-09-21 13:46:34 -04:00
bsd32.c automake commit without merge history 2010-05-06 11:34:04 +05:30
bsd64.c automake commit without merge history 2010-05-06 11:34:04 +05:30
bsd_pagetable.c * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): 2010-10-16 22:16:52 +02:00
bsdXX.c loader/bsd: Fix signed/unsigned comparison 2016-01-16 20:40:55 +00:00
linux.c loader/i386/linux: Calculate the setup_header length 2020-09-21 20:00:17 -04:00
multiboot_mbi.c verifiers: Core TPM support 2020-09-21 16:43:54 -04:00
xen.c verifiers: Xen fallout cleanup 2020-09-21 13:46:35 -04:00
xen_file.c verifiers: File type for fine-grained signature-verification controlling 2020-09-21 13:29:05 -04:00
xen_file32.c Add new ports: i386-xen and x86_64-xen. This allows running GRUB in 2013-11-09 21:29:11 +01:00
xen_file64.c Add new ports: i386-xen and x86_64-xen. This allows running GRUB in 2013-11-09 21:29:11 +01:00
xen_fileXX.c xen: Look for Xen notes in section headers too 2020-09-21 19:37:19 -04:00
xnu.c verifiers: File type for fine-grained signature-verification controlling 2020-09-21 13:29:05 -04:00