]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:26 +0000 (09:25 +0100)
commit8e102324e743ea5c120058e3ff1bc2834213015a
tree0ffcb71ca339927d65fdb5b7b3022a6eb481eaac
parenta38801ba1875a13b428337bff82873282db7abdd
x86/boot: Grab kernel_info offset from zoffset header directly

commit 2e765c02dcbfc2a8a4527c621a84b9502f6b9bd2 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/boot/header.S
arch/x86/boot/tools/build.c