Set the kernel_alignment and min_alignment fields in the Linux setup header.

This shouldn't be needed because we don't set the relocatable_kernel flag,
but the GRUB linuxefi command pays no attention to that. Currently the
linuxefi command also ignores the alignment values, but set them now in
case that changes in the future.
This commit is contained in:
Martin Whitaker 2022-05-15 09:56:40 +01:00
parent 722b1b2899
commit f98ceb1613

View File

@ -68,11 +68,11 @@ cmd_line_ptr:
initrd_addr_max:
.long 0xffffffff
kernel_alignment:
.long 0
.long 4096
relocatable_kernel:
.byte 0
min_alignment:
.byte 0
.byte 12
xload_flags:
#ifdef __x86_64__
.word 0x9 # XLF_KERNEL_64,XLF_EFI_HANDOVER_64