x86/boot: Grab kernel_info offset from zoffset header directly
authorArd Biesheuvel <ardb@kernel.org>
Fri, 15 Sep 2023 17:16:25 +0000 (17:16 +0000)
committerIngo Molnar <mingo@kernel.org>
Sun, 17 Sep 2023 17:48:42 +0000 (19:48 +0200)
commit2e765c02dcbfc2a8a4527c621a84b9502f6b9bd2
treec0ddfd1c7c48033a53e6fff49cb4a8b8148e7404
parentb618d31f112bea3d2daea19190d63e567f32a4db
x86/boot: Grab kernel_info offset from zoffset header directly

Instead of parsing zoffset.h and poking the kernel_info offset value
into the header from the build tool, just grab the value directly in the
asm file that describes this header.

This change has no impact on the resulting bzImage binary.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230915171623.655440-11-ardb@google.com
arch/x86/boot/header.S
arch/x86/boot/tools/build.c